From 64a3b25ddfc082658fddec68d207994a3ae8bdb8 Mon Sep 17 00:00:00 2001 From: fro Date: Sun, 2 Nov 2025 06:07:08 -0500 Subject: [PATCH] u --- cfg/ngx/wa.fo.conf | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/cfg/ngx/wa.fo.conf b/cfg/ngx/wa.fo.conf index f6c1cc7..4be63af 100644 --- a/cfg/ngx/wa.fo.conf +++ b/cfg/ngx/wa.fo.conf @@ -2,12 +2,11 @@ # configuration of wa.fo / frode klevstul / oct 2025 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# enforce ssl and bare domain (http) -# ($server_name will return the first value given) +# http ➔ https server { listen 80; - server_name op.fo www.op.fo; - return 301 https://$server_name$request_uri; + server_name wa.fo; + return 301 https://$host$request_uri; } # * ➔ bare domain (https) @@ -24,13 +23,6 @@ server { return 301 $scheme://wa.fo$request_uri; } -# http to https -server { - listen 80; - server_name wa.fo; - return 301 https://$host$request_uri; -} - # upstream configuration for postgrest (used as reversed proxy) upstream postgrest { server localhost:3000;