refactor: remove public-dashboard location block for cleaner configuration

This commit is contained in:
Nawaz Dhandala
2026-03-26 17:01:23 +00:00
parent f0ed6ae29f
commit 5b579fa55c

View File

@@ -67,24 +67,6 @@ server {
}
}
location /public-dashboard {
resolver ${NGINX_RESOLVER} valid=30s;
set $backend_app http://${SERVER_APP_HOSTNAME}:${APP_PORT};
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
if ($billing_enabled = true) {
return 301 https://$host$request_uri;
}
if ($billing_enabled != true) {
proxy_pass $backend_app;
}
}
location /status-page-api/ {
resolver ${NGINX_RESOLVER} valid=30s;
set $backend_app http://${SERVER_APP_HOSTNAME}:${APP_PORT};