louislam / uptime-kuma

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

Hidden Status Page #1050

Open nextcloudfan opened 2 years ago

nextcloudfan commented 2 years ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Request Type

UI Feature

🔖 Feature description

Right now you can select which is the default view: Dashboard or Status Page My instance is accessible from the web and if I entder domain:port I will see the login screen to enter the Dashbooard => Fine.

But the status page is always accessible without any login.

Is it possible to add some settings, that users can also decide if the y want to makle their status page public or not? In my case I have only provate server and services which I dont want to see everybody

✔️ Solution

an option to define if the staus page is public or not=> e.g. status page visible only after login

❓ Alternatives

No response

📝 Additional Context

No response

Hendalf-DEV commented 2 years ago

Use robot.txt or .htaccess

nextcloudfan commented 2 years ago

Without Apache or Nginx installed? Where should I place it?

trogper commented 2 years ago

kuma itself does not support .htaccess. I also doubt that this would work, since navigation is done on the client side

ln-12 commented 2 years ago

I have a similar use case: I want the push service to work from the internet, but the status page and dashboard should only be accessible from within my network. Has anyone found a workaround yet?

DunklerPhoenix commented 2 years ago

Use a reverseproxy (e.g. traefik) there you can filter external networks

(Easy solution: create a docker image with kuma+traefik)

ln-12 commented 2 years ago

@DunklerPhoenix Would it be possible for you to share you compose file? With every traefik configuration I tried, I only get a 404 page not found error.

cheesepaulo commented 1 year ago

I Found a way here, not the best but for my needs works fine.

I have a need to make all my status page private. No need for alter database or other UI things just protect the pages with login.

Here is the code that renders the StatusPages.

Before that code add a simple modification for redirect to / when user is not logged_in.

if (!this.hasToken) this.$router.push("/");

Just fork the project, adjust, make the build and be happy.

Azurz commented 11 months ago

Will it be possible to set a password on a status page?

martinnagelberg commented 4 months ago

Hey! Is there any chance to get this feature? I think it could be really interesting to share different status pages across different clients.

CommanderStorm commented 4 months ago

As stated above, you can add a password in front of the dashboard and the "api"-response in a reverse proxy.

Without user management, adding a password protection in front of a status page is sort of moot. => needs https://github.com/louislam/uptime-kuma/pull/3571 first