This commit is contained in:
fro
2025-11-02 06:07:08 -05:00
parent 0575f483d5
commit 64a3b25ddf

View File

@@ -2,12 +2,11 @@
# configuration of wa.fo / frode klevstul / oct 2025 # configuration of wa.fo / frode klevstul / oct 2025
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# enforce ssl and bare domain (http) # http ➔ https
# ($server_name will return the first value given)
server { server {
listen 80; listen 80;
server_name op.fo www.op.fo; server_name wa.fo;
return 301 https://$server_name$request_uri; return 301 https://$host$request_uri;
} }
# * ➔ bare domain (https) # * ➔ bare domain (https)
@@ -24,13 +23,6 @@ server {
return 301 $scheme://wa.fo$request_uri; 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 configuration for postgrest (used as reversed proxy)
upstream postgrest { upstream postgrest {
server localhost:3000; server localhost:3000;