Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:homegallery [2024/03/18 12:39] – willy | services:homegallery [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== HomeGallery ====== | ||
| - | [[https:// | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | Full documentation is well maintained and csan be found [[https:// | ||
| - | |||
| - | Create a **homegallery** user as a memeber of the **photos** group: | ||
| - | <code bash> | ||
| - | useradd -d / | ||
| - | su - homegallery | ||
| - | curl -sL https:// | ||
| - | chmod 755 gallery | ||
| - | </ | ||
| - | |||
| - | ===== Configuration ===== | ||
| - | |||
| - | Full configuration is [[https:// | ||
| - | |||
| - | First of all, run // | ||
| - | <code bash> | ||
| - | ./gallery run init --source ~/Pictures | ||
| - | </ | ||
| - | |||
| - | Now you can edit the **/ | ||
| - | <file - gallery.config.yml> | ||
| - | server: | ||
| - | port: 3022 | ||
| - | host: ' | ||
| - | BasePath: /gallery | ||
| - | </ | ||
| - | C | ||
| - | <code bash> | ||
| - | ./gallery run server | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===== Reverse Proxy ===== | ||
| - | |||
| - | Example NGINX configuration: | ||
| - | <file - gallery.conf> | ||
| - | location /gallery/ { | ||
| - | proxy_pass http:// | ||
| - | |||
| - | proxy_http_version 1.1; | ||
| - | proxy_set_header Upgrade $http_upgrade; | ||
| - | proxy_set_header Connection ' | ||
| - | proxy_set_header Host $host; | ||
| - | proxy_cache_bypass $http_upgrade; | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | Refer to [[selfhost: | ||
| - | |||
| - | ===== Startup ===== | ||
| - | |||
| - | |||
| - | ===== Upgrade ===== | ||
| - | |||
| - | See [[https:// | ||
| - | |||
| - | <code bash> | ||
| - | mv gallery gallery.old | ||
| - | curl -sL https:// | ||
| - | chmod 755 gallery | ||
| - | ./gallery run import | ||
| - | ./gallery run server & | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||