saltyorg / Sandbox

Saltbox Sandbox
GNU General Public License v3.0
70 stars 97 forks source link

Uptime Kuma: Add functionality for multiple domain names for Status Pages #316

Closed thatsnasty closed 5 months ago

thatsnasty commented 9 months ago

Uptime kuma supports multiple domain names for status pages. https://github.com/louislam/uptime-kuma/wiki/Status-Page#domain-names-for-status-pages

As an example, currently i'm using uptime kuma (from a different local mediabox install not listed below) and I'm monitoring the following:

plex.feederbox.tld plex.mediabox.tld

and I wanted each of those to have their own public status page i.e.

status.feederbox.tld status.mediabox.tld

Uptime kuma instructions say If you are using a reverse proxy, add your domain name in your reverse proxy and point to Uptime Kuma.

Using labels in inventory could be possible (currently haven't investigated) but is it possible to add this functionality to the uptime-kuma role to be more easily configurable in inventory?

Discord post

maximuskowalski commented 6 months ago

Any tests yet @thatsnasty ?

saltydk commented 5 months ago

I totally forgot about this, apologies. This can now be done through the inventory for any role:

uptime_kuma_web_subdomain: "status"
uptime_kuma_web_host_override: "Host(`' + traefik_host + '`) || Host(`{{ 'status.myotherdomain.tld' }}`)"

Closing this but feel free to reopen if there is anything else.