diff options
author | Franck Cuny <franck@fcuny.net> | 2024-09-21 11:30:40 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-09-21 11:30:40 -0700 |
commit | cba144751c5a6ab097f98570d153d9f1557faf15 (patch) | |
tree | 40077a6ee78f95785da3fdb2d9e9520b1e2352fd | |
parent | try to configure using the cgit module (diff) | |
download | world-cba144751c5a6ab097f98570d153d9f1557faf15.tar.gz |
let's try once again
-rw-r--r-- | nix/hosts/wildcat/configuration.nix | 14 |
1 files changed, 3 insertions, 11 deletions
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; }; }; }; |