-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/anubis: Traefik integration #647
Comments
When I read about Anubis, I immediately thought: that's a job for a traefic middleware! Excellent idea, happy test it. |
Same here. I think this could be handled through the ForwardAuth middleware for example? Details see documentation. That way anubis does its usual thing but instead proxying the request through to the target site, it just returns HTTP 2xx to Traefik to indicate it can do its thing because validation/cookie-check was good. You can still handle /robots.txt requests in anubis, that mechanism provides a central robots.txt provider for all services. |
I want to update y'all on this. I have a Traefik development environment set up in a VM. I'm going to do some more focused hacking this weekend. |
Does it work with Traefik as is? I really enjoy what this app is promising and wanna give it a go |
Yes, it doesn't integrate as a middleware cleanly, but Anubis is designed to be a HTTP middleware (reverse proxy). If you point Anubis to your app and then your reverse proxy to Anubis, things should Just Work:tm:.
This is a deficiency in my implementation right now. I have been meaning to fix it, but this week I'm speaking at two conferences. I'm actually in the middle of my flight to the second conference to speak tomorrow. I've been trying to figure out the best way to do this. I'm going to try and see about making it a Caddy middleware or something. I don't have good suggestions for the multi-site approach right now, this started out as a hack to protect my git server and has been successful beyond my wildest expectations. I'm trying to figure out the best way to implement this without being overkill and without being a logistical nightmare to self host. It's a very rough balance to meet, but I'm trying ^^ |
Hey its all good!! Take your time and get around to it when you can and want to. Its amazing so far regardless, I hope your 2nd conference goes well! :) |
No description provided.
The text was updated successfully, but these errors were encountered: