From aff0263bf22d22976eee388323fb945b956660fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KJ=20=C3=98rbekk?= Date: Wed, 9 Aug 2017 07:16:32 -0400 Subject: fix: cgit port configuration. --- config/cgit.nix | 4 ++-- config/web-server.nix | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/cgit.nix b/config/cgit.nix index 4057d1b..72cf578 100644 --- a/config/cgit.nix +++ b/config/cgit.nix @@ -24,9 +24,9 @@ in services.nginx = { enable = true; virtualHosts = { - "git.internal" = { + "git-internal" = { root = "${pkgs.cgit}/cgit"; - port = gitPort; + listen = [{ addr = "*"; port = gitPort; }]; extraConfig = "try_files $uri @cgit;"; locations."/git/" = { extraConfig = '' diff --git a/config/web-server.nix b/config/web-server.nix index a53f369..4e9ae07 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -33,6 +33,9 @@ }; locations."@storage" = { root = "/storage/srv/kj.orbekk.com"; + extraConfig = '' + autoindex on; + ''; }; locations."/systemd" = { proxyPass = "http://10.0.20.15:11105/"; -- cgit v1.2.3