s
continuous-integration/drone/push Build is passing Details

This commit is contained in:
quackerd 2021-04-10 06:26:27 -04:00
parent 116934ea2b
commit 9a38102297
1 changed files with 19 additions and 13 deletions

View File

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