fix: remove unneeded variables

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-09-05 20:24:57 -04:00
1 parent 98117db6a5
commit 460edc8b3e
1 file changed
+2 -10
+2 -10
View File
@@ -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 }}
} }
} }
} }