From 16a051eb810cacc6560abfc888cbf8961c50c5d5 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Tue, 17 Dec 2024 15:14:59 +0100 Subject: [PATCH] Immich: rewrite /photos to /sharing 9 --- immich/httpd.conf-cm.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/immich/httpd.conf-cm.yml b/immich/httpd.conf-cm.yml index 6d98e2a..6d41edb 100644 --- a/immich/httpd.conf-cm.yml +++ b/immich/httpd.conf-cm.yml @@ -68,12 +68,14 @@ data: AllowEncodedSlashes NoDecode ProxyPreserveHost Off + RewriteEngine on + RewriteRule ^photos/?$ /sharing [R=301,L] + # ProxyPass /photos http://helm-immich-server:2283/sharing # ProxyPassReverse /photos http://helm-immich-server:2283/sharing ProxyPass / http://helm-immich-server:2283/ ProxyPassReverse / http://helm-immich-server:2283/ RewriteEngine on - RewriteRule ^photos/?$ /sharing [R=301,L] RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?(.*) "ws://helm-immich-server:2283/$1" [P,L]