s
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
116934ea2b
commit
9a38102297
32
nginx.conf
32
nginx.conf
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue