Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
sailing:librephotos [2024/01/11 10:03] – willy | sailing:librephotos [2024/02/27 12:43] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LibrePhotos ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | There are other solutions out there like: | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | |||
- | LibrePhotos seems a fine solution while providing a good web UI and nice Android apps both official [[https:// | ||
- | |||
- | The biggest drawback to LibrePhotos is that is does not support sub-paths in the Web UI, so you need to expose a port over your tunnels at this time, bypassing NGINX reverse proxy, it's authentication ans HTTPS (this could probably be set-up for LibrePhotos manually). | ||
- | |||
- | The base-url issue can be tracked [[https:// | ||
- | |||
- | You will be using //Docker// because base-metal install is pretty complex. | ||
- | <code bash> | ||
- | > emerge -vp docker docker-compose | ||
- | </ | ||
- | |||
- | The ocmposer YAML is here: | ||
- | <code bash | ||
- | > mkdir / | ||
- | > cd / | ||
- | > git clone https:// | ||
- | > cd librephotos-docker | ||
- | > cp librephotos.env .env | ||
- | </ | ||
- | |||
- | now edit your **.env** and at very least set: | ||
- | < | ||
- | scanDirectory=/ | ||
- | data=/ | ||
- | httpPort=2283 | ||
- | </ | ||
- | |||
- | set any port you like. 2283 is just an example. Then start the containers: | ||
- | <code bash> | ||
- | > cd / | ||
- | > docker-compose up -d | ||
- | </ | ||
- | |||
- | containers should automatically restart at reboot too. | ||
- | |||
- | ===== Reverse Proxy ===== | ||
- | |||
- | Since LibrePhotos does not support subpaths, you cannot use NGINX to serve it. The best solution you cna use is to add a tunnel for port **2283** from your server to your external server, and maybe also add an automatic recirect in NGINX: | ||
- | |||
- | <file conf librephotos.conf> | ||
- | location /photos { | ||
- | auth_pam off; | ||
- | | ||
- | } | ||
- | </ | ||
- | |||
- | and add it to your **main.conf**: | ||
- | < | ||
- | include folders/ | ||
- | </ | ||
- | |||
- | and restart NGINX: | ||
- | <code bash> | ||
- | > / | ||
- | </ | ||
- | |||
- | this will only redirect your browser, not actually use NGINX to reverse-proxy the service. | ||
- | |||