traefik-container-manager icon indicating copy to clipboard operation
traefik-container-manager copied to clipboard

Add Waiting page ?

Open JamesDAdams opened this issue 3 years ago • 4 comments

It would be great as a feature to be able to define a waiting page while waiting for the service to start, if we have docker containers that take time to start we could have a waiting page that appears that we could customize and once the container is loaded we are redirected. 😀

JamesDAdams avatar Aug 23 '21 20:08 JamesDAdams

Yeah, that thought indeed crossed my mind. It was not very straightforward since there was no way to check the same from the middleware itself (since the app behind can also give 404/502s even when up causing an infinite loop).

The best way I can think of would be for the middleware to send a non standard HTTP status code, which can be handled by Traefik's error handler option to be sent to the manager, who can serve a static page with JS to reload the page every 5 seconds or something.

adyanth avatar Aug 24 '21 04:08 adyanth

ok

JamesDAdams avatar Aug 25 '21 11:08 JamesDAdams

maybe he can help https://github.com/guillaumebriday/traefik-custom-error-pages

JamesDAdams avatar Aug 27 '21 04:08 JamesDAdams

maybe he can help https://github.com/guillaumebriday/traefik-custom-error-pages

That project is now deprecated, replaced with https://github.com/tarampampam/error-pages

This feature request would definitely be useful though.

These guys seem to have cracked the loading page for a very similar project: https://github.com/acouvreur/traefik-ondemand-plugin

modem7 avatar Oct 09 '22 03:10 modem7