Skip to content
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

Open
Xe opened this issue Jan 19, 2025 · 6 comments
Open

cmd/anubis: Traefik integration #647

Xe opened this issue Jan 19, 2025 · 6 comments
Assignees
Labels
anubis Bugs involving Anubis

Comments

@Xe
Copy link
Owner

Xe commented Jan 19, 2025

No description provided.

@Xe Xe added the anubis Bugs involving Anubis label Jan 19, 2025
@kubrickfr
Copy link

When I read about Anubis, I immediately thought: that's a job for a traefic middleware!

Excellent idea, happy test it.

@DarkSpir
Copy link

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.

@Xe
Copy link
Owner Author

Xe commented Jan 23, 2025

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.

@Xe Xe self-assigned this Jan 23, 2025
@Handrail9
Copy link

Handrail9 commented Mar 6, 2025

Does it work with Traefik as is? I really enjoy what this app is promising and wanna give it a go
Edit: Okay, after playing, it does in fact "work" with traefik, but I think I would have to deploy an anubis instance for each of my 30 or so services unless I'm missing something

@Xe
Copy link
Owner Author

Xe commented Mar 7, 2025

Does it work with Traefik as is?

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:.

I think I would have to deploy an anubis instance for each of my 30 or so services unless I'm missing something

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 ^^

@Handrail9
Copy link

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anubis Bugs involving Anubis
Projects
Status: No status
Development

No branches or pull requests

4 participants