From 2f90b5cb5e2322e0c9d1815f63bdcfcdae94ded1 Mon Sep 17 00:00:00 2001 From: flechsig Date: Mon, 6 Oct 2025 15:41:30 +0200 Subject: [PATCH] add opticswiki.conf --- conf.d/opticswiki.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 conf.d/opticswiki.conf diff --git a/conf.d/opticswiki.conf b/conf.d/opticswiki.conf new file mode 100644 index 0000000..ea93766 --- /dev/null +++ b/conf.d/opticswiki.conf @@ -0,0 +1,24 @@ +# opticswiki conf for nginx +# cloned from gfa-status-test.conf +# adjustments UF 20251006 +server { + listen 80; + server_name opticswiki.psi.ch; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + server_name opticswiki.psi.ch; + + ssl_certificate /etc/nginx/certs/opticswiki.psi.ch.crt; + ssl_certificate_key /etc/nginx/private/opticswiki.psi.ch.key; + + location / { + proxy_pass http://opticswiki: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; + } +}