Add *.app.vostan.org servers.

Change configuration name. Now configuration name is the reversed site
name.
Add all those configuration to https certificate.
This commit is contained in:
2025-05-21 23:33:03 +01:00
parent 98b14edb81
commit 77eb5180e1
14 changed files with 82 additions and 42 deletions

View File

@@ -35,8 +35,8 @@ server {
return 301 https://$host$request_uri;
}
# If host name is not known, then simply return 404
#
## If host name is not known, then simply return 404
##
set $known_host 0;
if ($host = www.vostan.org) {
set $known_host 1;
@@ -44,7 +44,10 @@ server {
if ($host = drive.vostan.org) {
set $known_host 1;
}
if ($host ~* "^.+\.app\.vostan\.org$") {
set $known_host 1;
}
if ($known_host != 1) {
return 404;
return 404;
}
}