From 5a201dddc4accedc771c03374e4940596b7e9c01 Mon Sep 17 00:00:00 2001 From: Thomas Camlong <49837342+ajnart@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:33:47 +0200 Subject: [PATCH] Add `/s` auth bypass for Photoprism `/s` is the path that corresponds to semi-publicly available share URLs in Photoprism (they still require a secret key in the URL), this commit make it so that they are bypassed by the authentification method. --- photoprism.subdomain.conf.sample | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/photoprism.subdomain.conf.sample b/photoprism.subdomain.conf.sample index 606dd7e..f018130 100644 --- a/photoprism.subdomain.conf.sample +++ b/photoprism.subdomain.conf.sample @@ -42,4 +42,12 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + location ~ (/photoprism)?/s { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app photoprism; + set $upstream_port 2342; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } }