From cba144751c5a6ab097f98570d153d9f1557faf15 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 21 Sep 2024 11:30:40 -0700 Subject: let's try once again --- nix/hosts/wildcat/configuration.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'nix') diff --git a/nix/hosts/wildcat/configuration.nix b/nix/hosts/wildcat/configuration.nix index 9df4496..6e6cbcb 100644 --- a/nix/hosts/wildcat/configuration.nix +++ b/nix/hosts/wildcat/configuration.nix @@ -1,11 +1,4 @@ -{ lib, pkgs, ... }: -let - robots-deny = pkgs.writeText "robots.txt" '' - User-agent: * - Disallow: / - ''; -in -{ +{ lib, pkgs, ... }: { networking = { firewall.allowedTCPPorts = [ # nginx @@ -41,6 +34,8 @@ in services.cgit.main = { enable = true; + user = "cgit"; + group = "cgit"; nginx.virtualHost = "git.fcuny.net"; scanPath = "/var/lib/gitolite/repositories"; settings = { @@ -104,9 +99,6 @@ in "/.well-known/acme-challenge" = { root = "/var/lib/acme/acme-challenges"; }; - # as per https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md - # if you want to map a single file make sure the location starts with a =, e.g =/i.gif instead of /i.gif. - "=/robots.txt".alias = robots-deny; }; }; }; -- cgit 1.4.1