diff --git a/cfg/ngx/gt.op.fo conf b/cfg/ngx/gt.op.fo conf new file mode 100644 index 0000000..8060fd4 --- /dev/null +++ b/cfg/ngx/gt.op.fo conf @@ -0,0 +1,24 @@ +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# configuration of gt.op.fo / frode klevstul / dec 2025 +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +# gt.op.fo ➔ gi.op.fo (http) +server { + listen 80; + server_name gt.op.fo; + return 301 https://gi.op.fo$request_uri; +} + +# gt.op.fo ➔ gi.op.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 gt.op.fo; + return 301 https://gi.op.fo$request_uri; +}