anubis support #72
Reference in New Issue
Block a user
No description provided.
Delete Branch "anubis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i'm trying to follow https://anubis.techaro.lol/docs/admin/environments/traefik
the idea is that traefik runs anubis and each recipe sets a new label for the middleware. it doesn't work currently, probably because i don't know almost anything about how traefik works and i was just following what other recipes do.
i can find the
anubis@swarmmiddleware on the dashboard, but not the service or the router. the service with the middleware doesn't seem to use it and works as is. the anubis container is running.ok got the service to work!
it works! it involves added a new
compose.anubis.ymlfile to any recipe that would benefit from it, copying the app middlewares label and adding the anubis middleware where appropiate. i opened pull requests on forgejo and hedgedoc recipes.Looks good to me! Have not tested it but if you say it works it works :)
Could you add a small section to the readme, maybe with a link to Anubis docs and explain that each app that should be behind Anubis needs it activated in its config
done!
also added some env vars. what's missing is a way to configure policies
So cool to see this coming down the tubes! Here's a quick review...
@ -0,0 +9,4 @@image: "ghcr.io/techarohq/anubis:v1.24.0"environment:BIND: ":8080"TARGET: " "Is
" "required or can this be skipped? Maybe worth a comment if it's needed.it's required by anubis but the docs don't explain why, just that a space means anubis is enabled with redirection mode
@ -0,0 +13,4 @@REDIRECT_DOMAINS: "${ANUBIS_REDIRECT_DOMAINS}"COOKIE_DOMAIN: "${ANUBIS_COOKIE_DOMAIN}"PUBLIC_URL: "https://${ANUBIS_DOMAIN}"OG_PASSTHROUGH: "${ANUBIS_OG_PASSTHROUGH}"Do env vars like
ANUBIS_OG_PASSTHROUGHneed to also be added to theenvironment: ...stanza or they are magically added in?not sure what you mean? i prefixed them
ANUBIS_to keep them separate from traefik's@fauno ah, i mean: where does
ANUBIS_COOKIE_DOMAINcome from? should it not be this?If it's not an issue, ignore me ☺️
it comes from the .env file and it seems to be working
WIP: anubis supportto anubis support@fauno is this ready to be merged?
@decentral1se it's been working ok for us but i haven't had time to properly test if the default policies are ok. i'd say it can be released yeah. can we announce it too?
maybe add the new flags to a couple more recipes. wordpress and what else has public information?
Feel free to self-organise the announce work via the matrix channels, that would be great! I also love a good blog post or perhaps we can just signal boost what you post from your own side? Whatever works, let's tell The People 🎆
I will see about how we can make a traefik release shortly.