From 02cb93fce01b927399023c8162e9a251c1a39c4a Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Tue, 21 Apr 2026 22:12:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20:=20add=20Caddyfile=20for=20Anub?= =?UTF-8?q?is?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/drafts/anubis/Caddyfile | 15 +++++++++++++++ content/posts/drafts/anubis/anubis.yml | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 content/posts/drafts/anubis/Caddyfile create mode 100644 content/posts/drafts/anubis/anubis.yml diff --git a/content/posts/drafts/anubis/Caddyfile b/content/posts/drafts/anubis/Caddyfile new file mode 100644 index 0000000..3bd0ef0 --- /dev/null +++ b/content/posts/drafts/anubis/Caddyfile @@ -0,0 +1,15 @@ +:8080 + +forward_auth 127.0.0.1:8923 { + uri /.within.website/x/cmd/anubis/api/check + trusted_proxies private_ranges + @unauthorized status 401 + handle_response @unauthorized { + redir * /.within.website/?redir={uri} 307 + } + header_up X-Real-Ip {remote_host} + header_up X-Http-Version {http.request.proto} +} +file_server { + root cc_static_autobuilt +} \ No newline at end of file diff --git a/content/posts/drafts/anubis/anubis.yml b/content/posts/drafts/anubis/anubis.yml new file mode 100644 index 0000000..0f424dd --- /dev/null +++ b/content/posts/drafts/anubis/anubis.yml @@ -0,0 +1,7 @@ +# POLICY_FNAME=anubis.yaml TARGET=" " anubis + +bots: + - import: (data)/meta/default-config.yaml + - name: allow-telegraf + action: ALLOW + user_agent_regex: Telegraf -- 2.51.2