From 9ff88d5de008fa99e1179443d41f6663fdc590da Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Tue, 28 Oct 2025 10:16:39 +0100 Subject: [PATCH] fix forwarding for cmdbuild (#17) Reviewed-on: https://gitea.psi.ch/linux/WebHosting/pulls/17 Co-authored-by: Konrad Bucheli Co-committed-by: Konrad Bucheli --- conf.d/panda-maintenance.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conf.d/panda-maintenance.conf b/conf.d/panda-maintenance.conf index 3c1d7b2..e6f658b 100644 --- a/conf.d/panda-maintenance.conf +++ b/conf.d/panda-maintenance.conf @@ -11,8 +11,14 @@ server { ssl_certificate /etc/nginx/certs/panda-maintenance.psi.ch.crt; ssl_certificate_key /etc/nginx/private/panda-maintenance.psi.ch.key; + + rewrite ^/$ /cmdbuild/ permanent; location / { - proxy_pass http://panda-maintenance-app:8080/cmdbuild; + return 404; + } + + location /cmdbuild { + proxy_pass http://panda-maintenance-app:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;