JamesTurland / JimsGarage

Homelab Goodies
2.16k stars 482 forks source link

Added Pihole redirect middleware to Kubernetes deployment #46

Closed jlengelbrecht closed 10 months ago

jlengelbrecht commented 10 months ago

Added a new middleware to the traefik | pihole Kubernetes deployment. This new middleware fixes the annoying 403 error you get when accessing pihole through traefik SSL

With this change you will no longer need to add /admin manually at the end of your domain. This middleware is a simple regex that redirects anything hitting pihole.yourdomain.com to pihole.yourdomain.com/admin.

jlengelbrecht commented 10 months ago

closed out previous branch as it had some unwanted code in it that I did not intend to include. Please review this new PR and let me know of your thoughts. Hope this helps!