Files
WebHosting/conf.d/omny.conf
T
bruhn_b 867acacec4 deploy omny test
Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
2026-01-27 15:45:52 +01:00

26 lines
685 B
Plaintext

# omny-test conf for nginx
server {
listen 80;
server_name omny-test.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name omny-test.psi.ch;
ssl_certificate /etc/nginx/certs/omny-test.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/omny-test.psi.ch.key;
location / {
proxy_pass http://apache_app:80;
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;
proxy_set_header Cookie $http_cookie;
proxy_set_header Authorization $http_authorization;
}
}