parasol-static-site/default.conf.tmpl

19 lines
454 B
Cheetah
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server {
listen 80;
server_name {{ env "DOMAIN" }};
root /usr/share/nginx/website;
index index.html;
location / {
try_files $uri $uri/index.html =404;
}
location /deploy {
{{ if eq (env "AUTH_ENABLED") "1" }}
auth_basic "Administrators Area";
auth_basic_user_file /etc/nginx/.htpasswd;
{{ end }}
proxy_pass http://badger:8080;
}
}