This commit is contained in:
quackerd 2021-02-01 02:29:12 -05:00
parent 51380531f7
commit b39c32ebc0
Signed by: d
GPG Key ID: F73412644EDE357A
1 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,16 @@
geo $external {
default 1;
172.127.127.0/24 0;
}
server {
listen 80 default_server;
server_name {{subdomain}}.{{domain}};
if ($external) {
return 301 https://$host$request_uri
}
root /config/www;
index index.html index.htm index.php;
}