How to redirect Traefik to Uptime-Kuma when a service is down? #447

Open
opened 2026-02-28 01:46:50 -05:00 by deekerman · 0 comments
Owner

Originally created by @Akruidenberg on GitHub (Oct 21, 2021).

Is it a duplicated question?
no

Describe your problem
I would like to redirect Traefik to Kuma uptime status page when a service is down. Families can then see the status of the services. However, I don't get it working. That's the reason why i asked the question here.

Here are my docker labels for the uptime-kuma container.

      traefik.enable: "true"

      ## HTTP Routers       
      traefik.http.routers.uptime-kuma-rtr.entrypoints: https
      traefik.http.routers.uptime-kuma-rtr.rule: Host(`uptime-kuma.$DOMAINNAME`)
      ## Middlewares
      traefik.http.routers.uptime-kuma-rtr.middlewares: chain-no-auth@file
      ## HTTP Services
      traefik.http.routers.uptime-kuma-rtr.service: uptime-kuma-svc  
      traefik.http.services.uptime-kuma-svc.loadbalancer.server.port: 3001   


      traefik.http.routers.uptime-kuma-status-rtr.rule: HostRegexp(`{host:.+}`)
      traefik.http.routers.uptime-kuma-status-rtr.priority: 10

      traefik.http.routers.uptime-kuma-status-rtr.entrypoints: https
      traefik.http.routers.uptime-kuma-status-rtr.rule: Host(`uptime-kuma.$DOMAINNAME`) && Path(`/status`)
      ## Middlewares
      traefik.http.routers.uptime-kuma-status-rtr.middlewares: chain-no-auth@file,uptime-kuma-status@docker
      traefik.http.middlewares.uptime-kuma-status.errors.status: 400-599
      traefik.http.middlewares.uptime-kuma-status.errors.service: uptime-kuma-status-svc
      traefik.http.middlewares.uptime-kuma-status.errors.query: /{status}.html
      ## HTTP Services
      traefik.http.routers.uptime-kuma-status-rtr.service: uptime-kuma-status-svc  
      traefik.http.services.uptime-kuma-status-svc.loadbalancer.server.port: 3001   

uptime is still working, but other pages will still shown page not found.

Info
Uptime Kuma Version: 1.9.1
Using Docker?: Yes
Docker Version: 20.10.9 (API: 1.41)
OS: Debian 10 (OMV5)
Browser: Firefox 93,0 x64

Is there anyone with the same situation?

Originally created by @Akruidenberg on GitHub (Oct 21, 2021). **Is it a duplicated question?** no **Describe your problem** I would like to redirect Traefik to Kuma uptime status page when a service is down. Families can then see the status of the services. However, I don't get it working. That's the reason why i asked the question here. Here are my docker labels for the uptime-kuma container. ``` traefik.enable: "true" ## HTTP Routers traefik.http.routers.uptime-kuma-rtr.entrypoints: https traefik.http.routers.uptime-kuma-rtr.rule: Host(`uptime-kuma.$DOMAINNAME`) ## Middlewares traefik.http.routers.uptime-kuma-rtr.middlewares: chain-no-auth@file ## HTTP Services traefik.http.routers.uptime-kuma-rtr.service: uptime-kuma-svc traefik.http.services.uptime-kuma-svc.loadbalancer.server.port: 3001 traefik.http.routers.uptime-kuma-status-rtr.rule: HostRegexp(`{host:.+}`) traefik.http.routers.uptime-kuma-status-rtr.priority: 10 traefik.http.routers.uptime-kuma-status-rtr.entrypoints: https traefik.http.routers.uptime-kuma-status-rtr.rule: Host(`uptime-kuma.$DOMAINNAME`) && Path(`/status`) ## Middlewares traefik.http.routers.uptime-kuma-status-rtr.middlewares: chain-no-auth@file,uptime-kuma-status@docker traefik.http.middlewares.uptime-kuma-status.errors.status: 400-599 traefik.http.middlewares.uptime-kuma-status.errors.service: uptime-kuma-status-svc traefik.http.middlewares.uptime-kuma-status.errors.query: /{status}.html ## HTTP Services traefik.http.routers.uptime-kuma-status-rtr.service: uptime-kuma-status-svc traefik.http.services.uptime-kuma-status-svc.loadbalancer.server.port: 3001 ``` uptime is still working, but other pages will still shown page not found. **Info** Uptime Kuma Version: 1.9.1 Using Docker?: Yes Docker Version: 20.10.9 (API: 1.41) OS: Debian 10 (OMV5) Browser: Firefox 93,0 x64 Is there anyone with the same situation?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#447
No description provided.