mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: remove public-dashboard location block for cleaner configuration
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user