louislam / uptime-kuma

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

Redirect http to https #4062

Open sochartgit opened 1 year ago

sochartgit commented 1 year ago

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

🏷️ Feature Request Type

UI Feature

🔖 Feature description

I'm running Kuma bare on a Pi and it works really well. I've enable a cert through ACME and https works well too. The only missing piece is an automatic redirection from http to https to avoid timeout when I forget to enter https:\ Thanks.

✔️ Solution

I'd like the http requests to be redirected to https automatically when a cert is enabled.

❓ Alternatives

No response

📝 Additional Context

No response

chakflying commented 1 year ago

While some web servers support this, it is a bit of a footgun as it can cause infinite redirects for people using reverse proxy.

Instead I strongly encourage you to use a reverse proxy like caddy or nginx, which will handle this for you, and also manage and renew the TLS certificates automatically for convenience.