feat: anubis bot protection to forgejo
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{inputs, ...}: {
|
||||
{...}: {
|
||||
imports = [
|
||||
./analytics.nix
|
||||
./network.nix
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user