19 lines
454 B
Cheetah
19 lines
454 B
Cheetah
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 "Administrator’s Area";
|
||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||
{{ end }}
|
||
proxy_pass http://badger:8080;
|
||
}
|
||
}
|