d2ray/nginx.conf
quackerd 353a89c3ae
All checks were successful
continuous-integration/drone/push Build is passing
s
2021-04-10 06:44:36 -04:00

23 lines
391 B
Nginx Configuration File

user www www;
worker_processes auto;
error_log /opt/config/logs/nginx/error.log;
http {
geo $external {
default 1;
127.0.0.1/32 0;
}
server {
listen 80 default_server;
server_name {{subdomain}}.{{domain}};
access_log /opt/config/logs/nginx/access.log;
if ($external) {
return 301 https://$host$request_uri;
}
root /opt/config/nginx;
index index.html;
}
}