anubis support #72

Merged
decentral1se merged 8 commits from anubis into master 2026-01-03 14:23:40 +00:00
Owner

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@swarm middleware 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.

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@swarm` middleware 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.
fauno added 3 commits 2025-12-24 20:08:58 +00:00
fix: anubis
Some checks failed
continuous-integration/drone/pr Build is failing
a135d170bb
fauno requested review from 3wordchant 2025-12-24 20:08:58 +00:00
Author
Owner

ok got the service to work!

ok got the service to work!
fauno added 1 commit 2025-12-24 21:33:59 +00:00
fix: labels
Some checks failed
continuous-integration/drone/pr Build is failing
ac33efe73a
Author
Owner

it works! it involves added a new compose.anubis.yml file 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.

it works! it involves added a new `compose.anubis.yml` file 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.
Owner

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

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
fauno added 2 commits 2025-12-26 16:23:15 +00:00
doc: readme
Some checks failed
continuous-integration/drone/pr Build is failing
f469a1a90e
Author
Owner

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!

> 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!
fauno added 2 commits 2025-12-26 16:46:41 +00:00
feat: serve default robots txt
Some checks failed
continuous-integration/drone/pr Build is failing
92650aa12a
Author
Owner

also added some env vars. what's missing is a way to configure policies

also added some env vars. what's missing is a way to configure policies
decentral1se reviewed 2025-12-28 10:57:35 +00:00
decentral1se left a comment
Owner

So cool to see this coming down the tubes! Here's a quick review...

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: " "
Owner

Is " " required or can this be skipped? Maybe worth a comment if it's needed.

Is `" "` required or can this be skipped? Maybe worth a comment if it's needed.
Author
Owner

it's required by anubis but the docs don't explain why, just that a space means anubis is enabled with redirection mode

it's required by anubis but the docs don't explain why, just that a space means anubis is enabled with redirection mode
decentral1se marked this conversation as resolved
@ -0,0 +13,4 @@
REDIRECT_DOMAINS: "${ANUBIS_REDIRECT_DOMAINS}"
COOKIE_DOMAIN: "${ANUBIS_COOKIE_DOMAIN}"
PUBLIC_URL: "https://${ANUBIS_DOMAIN}"
OG_PASSTHROUGH: "${ANUBIS_OG_PASSTHROUGH}"
Owner

Do env vars like ANUBIS_OG_PASSTHROUGH need to also be added to the environment: ... stanza or they are magically added in?

Do env vars like `ANUBIS_OG_PASSTHROUGH` need to also be added to the `environment: ...` stanza or they are magically added in?
Author
Owner

not sure what you mean? i prefixed them ANUBIS_ to keep them separate from traefik's

not sure what you mean? i prefixed them `ANUBIS_` to keep them separate from traefik's
Owner

@fauno ah, i mean: where does ANUBIS_COOKIE_DOMAIN come from? should it not be this?

environment:
  ANUBIS_COOKIE_DOMAIN:
  COOKIE_DOMAIN: "${ANUBIS_COOKIE_DOMAIN}"

If it's not an issue, ignore me ☺️

@fauno ah, i mean: where does `ANUBIS_COOKIE_DOMAIN` come from? should it not be this? ```yaml environment: ANUBIS_COOKIE_DOMAIN: COOKIE_DOMAIN: "${ANUBIS_COOKIE_DOMAIN}" ``` If it's not an issue, ignore me ☺️
Author
Owner

it comes from the .env file and it seems to be working

it comes from the .env file and it seems to be working
decentral1se marked this conversation as resolved
fauno changed title from WIP: anubis support to anubis support 2025-12-28 14:13:23 +00:00
Owner

@fauno is this ready to be merged?

@fauno is this ready to be merged?
Author
Owner

@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?

> @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?
p4u1 approved these changes 2026-01-03 07:51:34 +00:00
decentral1se approved these changes 2026-01-03 14:23:35 +00:00
decentral1se merged commit 7dd833dbec into master 2026-01-03 14:23:40 +00:00
Owner

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.

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.
Sign in to join this conversation.
No description provided.