fix: remove unneeded variables
This commit is contained in:
1 parent
98117db6a5
commit
460edc8b3e
1 file changed
+2
-10
Vendored
+2
-10
@@ -14,11 +14,7 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen {{ $.PORT }};
|
listen {{ $.PORT }};
|
||||||
server_name _;
|
server_name _;
|
||||||
{{ if ne $.NGINX_ROOT "" }}
|
root /app/www;
|
||||||
root /app/www/{{ $.NGINX_ROOT }};
|
|
||||||
{{ else }}
|
|
||||||
root /app/www;
|
|
||||||
{{ end }}
|
|
||||||
index index.html;
|
index index.html;
|
||||||
port_in_redirect off;
|
port_in_redirect off;
|
||||||
|
|
||||||
@@ -28,11 +24,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
{{ if ne $.NGINX_DEFAULT_REQUEST "" }}
|
try_files $uri $uri/ =404;
|
||||||
try_files $uri $uri/ /{{ $.NGINX_DEFAULT_REQUEST }};
|
|
||||||
{{ else }}
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
{{ end }}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user