about summary refs log tree commit diff
path: root/nix/hosts/wildcat/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/hosts/wildcat/configuration.nix')
-rw-r--r--nix/hosts/wildcat/configuration.nix14
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;
         };
       };
     };