diff options
Diffstat (limited to 'modules/services')
-rw-r--r-- | modules/services/gitea/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index ece75de..ac4cff3 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -1,5 +1,10 @@ { config, pkgs, lib, ... }: -let cfg = config.my.services.gitea; +let + cfg = config.my.services.gitea; + robots-deny = pkgs.writeText "robots.txt" '' + User-agent: * + Disallow: / + ''; in { options.my.services.gitea = with lib; { @@ -49,6 +54,7 @@ in proxyPass = "http://127.0.0.1:8002"; proxyWebsockets = true; }; + locations."= /robots.txt".alias = robots-deny; }; services.prometheus.scrapeConfigs = [{ |