From 0575f483d560dae87853fb03c6e207b72e80f040 Mon Sep 17 00:00:00 2001 From: fro Date: Sun, 2 Nov 2025 06:00:28 -0500 Subject: [PATCH] +/ moved sc.op.fo to own cfg file --- cfg/ngx/sc.op.fo.conf | 24 ++++++++++++++++++++++++ cfg/ngx/wa.fo.conf | 25 ------------------------- 2 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 cfg/ngx/sc.op.fo.conf diff --git a/cfg/ngx/sc.op.fo.conf b/cfg/ngx/sc.op.fo.conf new file mode 100644 index 0000000..7203289 --- /dev/null +++ b/cfg/ngx/sc.op.fo.conf @@ -0,0 +1,24 @@ +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# configuration of sc.op.fo / frode klevstul / oct 2025 +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +# sc.op.fo ➔ wa.fo (http) +server { + listen 80; + server_name sc.op.fo; + return 301 https://wa.fo$request_uri; +} + +# sc.op.fo ➔ wa.fo (https) +server { + listen 443 ssl; + listen [::]:443 ssl; + http2 on; + + ssl_certificate /etc/nginx/acme.sh/op.fo/fullchain.pem; + ssl_certificate_key /etc/nginx/acme.sh/op.fo/key.pem; + ssl_trusted_certificate /etc/nginx/acme.sh/op.fo/cert.pem; + + server_name sc.op.fo; + return 301 https://wa.fo$request_uri; +} diff --git a/cfg/ngx/wa.fo.conf b/cfg/ngx/wa.fo.conf index 7c92f26..f6c1cc7 100644 --- a/cfg/ngx/wa.fo.conf +++ b/cfg/ngx/wa.fo.conf @@ -2,31 +2,6 @@ # configuration of wa.fo / frode klevstul / oct 2025 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# <<<<< REDIRECTS OF OTHER DOMAINS >>>>> - -# sc.op.fo ➔ wa.fo (http) -server { - listen 80; - server_name sc.op.fo; - return 301 https://wa.fo$request_uri; -} - -# sc.op.fo ➔ wa.fo (https) -server { - listen 443 ssl; - listen [::]:443 ssl; - http2 on; - - ssl_certificate /etc/nginx/acme.sh/op.fo/fullchain.pem; - ssl_certificate_key /etc/nginx/acme.sh/op.fo/key.pem; - ssl_trusted_certificate /etc/nginx/acme.sh/op.fo/cert.pem; - - server_name sc.op.fo; - return 301 https://wa.fo$request_uri; -} - -# <<<<< SETUP OF MAIN DOMAIN >>>>> - # enforce ssl and bare domain (http) # ($server_name will return the first value given) server {