add test conf file

This commit is contained in:
2026-03-16 16:29:20 +01:00
committed by Gitea
parent 21e4e618dd
commit 678254599d
+29
View File
@@ -0,0 +1,29 @@
server {
listen 80;
server_name mcda-up-test.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name mcda-up-test.psi.ch;
ssl_certificate /etc/nginx/certs/mcda-up-test.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/mcda-up-test.psi.ch.key;
location /api/ {
proxy_pass http://up-mavt-suite-backend:5000/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
proxy_pass http://up-mavt-suite-frontend:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}