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
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# 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;