18 lines
412 B
Plaintext
18 lines
412 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
location = /healthz {
|
|
proxy_pass http://dashboard:8787/healthz;
|
|
}
|
|
|
|
location / {
|
|
auth_basic "CASAN local-prod dashboard";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
proxy_pass http://dashboard:8787;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|