d2ray/nginx.in

18 lines
253 B
Plaintext
Raw Normal View History

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) {
return 301 https://$host$request_uri
}
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
}