louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.61k stars 5.41k forks source link

The base URL does not apply #4501

Closed peterzheng98 closed 9 months ago

peterzheng98 commented 9 months ago

⚠️ Please verify that this question has NOT been raised before.

🛡️ Security Policy

📝 Describe your problem

I hope to access Kuma through the /uptime path. However, even though I have set the Base URL to xxx.com/uptime/ and configured Nginx to forward /uptime/ to localhost:3001, accessing /uptime still automatically redirects to /dashboard, which conflicts with other services.

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.11

💻 Operating System and Arch

Ubuntu 20.04 x86

🌐 Browser

Microsoft Edge Version 114.0.1823.41 (Official build) (x86_64)

🖥️ Deployment Environment

CommanderStorm commented 9 months ago

That is currently not supported and not what said setting is used for. The setting is used for setting the base path (in https://example.com/status/abc this would be https://example.com) used in some notification providers.

See this issue:

If you need just a status page under a certain subdirectory, see https://github.com/louislam/uptime-kuma/wiki/Status-Page#custom-subdirectory--custom-html-on-status-pages instead