deploy niagadm

Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
2026-01-23 13:49:32 +01:00
parent 4a77418662
commit a89cdd3129
3 changed files with 59 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
server {
listen 80;
server_name niagadm.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name niagadm.psi.ch;
ssl_certificate /etc/nginx/certs/niagadm.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/niagadm.psi.ch.key;
access_log /var/log/nginx/niagadm.access.log;
error_log /var/log/nginx/niagadm.error.log;
# Proxy EVERYTHING to the Apache container
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;
# Important for CGI apps
proxy_buffering off;
}
}