From 6aba058a8a50ba4a0e9a465af0acda873ed849cd Mon Sep 17 00:00:00 2001 From: Basil Bruhn Date: Mon, 28 Jul 2025 15:19:33 +0200 Subject: [PATCH 1/2] add sinqstatus Signed-off-by: Basil Bruhn --- conf.d/sinqstatus-test.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 conf.d/sinqstatus-test.conf diff --git a/conf.d/sinqstatus-test.conf b/conf.d/sinqstatus-test.conf new file mode 100644 index 0000000..7e4e15b --- /dev/null +++ b/conf.d/sinqstatus-test.conf @@ -0,0 +1,31 @@ +# Redirect HTTP to HTTPS +server { + listen 80; + server_name sinqstatus-test.psi.ch; + + return 301 https://$host$request_uri; +} + +# Serve content over HTTPS +server { + listen 443 ssl; + server_name sinqstatus-test.psi.ch; + + root /opt/webcontent/sinqstatus-test; + index index.html; + + ssl_certificate /etc/ssl/certs/sinqstatus-test.psi.ch.crt; + ssl_certificate_key /etc/ssl/private/sinqstatus-test.psi.ch.key; + + access_log /var/log/nginx/sinqstatus-test.access.log; + error_log /var/log/nginx/sinqstatus-test.error.log; + + location / { + autoindex on; + autoindex_exact_size off; + autoindex_localtime on; + + try_files $uri $uri/ =404; + } +} + From 0f6dcbdb86c564ffa7ca035491e757e1cfada290 Mon Sep 17 00:00:00 2001 From: Basil Bruhn Date: Mon, 28 Jul 2025 15:22:30 +0200 Subject: [PATCH 2/2] comments Signed-off-by: Basil Bruhn --- conf.d/sinqstatus-test.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conf.d/sinqstatus-test.conf b/conf.d/sinqstatus-test.conf index 7e4e15b..8d8963b 100644 --- a/conf.d/sinqstatus-test.conf +++ b/conf.d/sinqstatus-test.conf @@ -1,4 +1,4 @@ -# Redirect HTTP to HTTPS +# INC0150202 Kohlbrecher Joachim & Wall Edward Owen server { listen 80; server_name sinqstatus-test.psi.ch; @@ -6,7 +6,6 @@ server { return 301 https://$host$request_uri; } -# Serve content over HTTPS server { listen 443 ssl; server_name sinqstatus-test.psi.ch;