u
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user