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.
This commit is contained in:
Thomas Camlong 2023-08-28 20:33:47 +02:00 committed by GitHub
commit 5a201dddc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,4 +42,12 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port; 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;
}
} }