From 1d6a13f479c2a6636fe37f16d65dcef79d3ddfe2 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 19 May 2025 11:39:38 +0200 Subject: [PATCH] feat(heimdall): put anubis in front of redlib. --- modules/servers/heimdall/redlib.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/servers/heimdall/redlib.nix b/modules/servers/heimdall/redlib.nix index 78a83ab..a89a4a9 100644 --- a/modules/servers/heimdall/redlib.nix +++ b/modules/servers/heimdall/redlib.nix @@ -9,10 +9,20 @@ }; }; + # Setup anubis to block fucking ai bots + services.anubis.instances.redlib = { + settings = { + TARGET = "http://127.0.0.1:8080"; + BIND_NETWORK = "tcp"; + BIND = "127.0.0.1:8081"; + SERVE_ROBOTS_TXT = true; + }; + }; + services.traefik.dynamicConfigOptions.http = { services.redlib.loadBalancer.servers = [ { - url = "http://localhost:8080"; + url = "http://localhost:8081"; } ];