2021-02-01 07:29:12 +00:00
|
|
|
geo $external {
|
|
|
|
default 1;
|
|
|
|
172.127.127.0/24 0;
|
|
|
|
}
|
|
|
|
|
2021-02-01 06:07:23 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
2021-02-01 06:15:10 +00:00
|
|
|
server_name {{subdomain}}.{{domain}};
|
2021-02-01 07:29:12 +00:00
|
|
|
|
|
|
|
if ($external) {
|
2021-02-01 07:40:21 +00:00
|
|
|
return 301 https://$host$request_uri;
|
2021-02-01 07:29:12 +00:00
|
|
|
}
|
|
|
|
|
2021-02-01 06:15:10 +00:00
|
|
|
root /config/www;
|
|
|
|
index index.html index.htm index.php;
|
2021-02-01 06:07:23 +00:00
|
|
|
}
|
|
|
|
|