Archived
1
0

feat: anubis bot protection to forgejo

This commit is contained in:
Guz
2025-04-04 20:16:16 -03:00
parent 8c9b2afad9
commit a971ca1f8f
2 changed files with 14 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
{inputs, ...}: {
{...}: {
imports = [
./analytics.nix
./network.nix

View File

@@ -17,6 +17,19 @@
'';
};
};
services.anubis.enable = true;
services.anubis.instances = {
"forgejo" = let
forgejo-port = config.services.forgejo.settings.server.HTTP_PORT;
in {
bind = ":${toString (forgejo-port + 20)}";
metricsBind = ":${toString (forgejo-port + 30)}";
serveRobotsTxt = true;
target = "http://localhost:${toString forgejo-port}";
};
};
virtualisation.oci-containers.containers.cloudflare-funnel = let
secrets = config.spacestation-secrets.lesser;
in {