diff options
author | KJ Ørbekk <kj@orbekk.com> | 2017-08-09 07:16:32 -0400 |
---|---|---|
committer | KJ Ørbekk <kj@orbekk.com> | 2017-08-09 07:16:32 -0400 |
commit | aff0263bf22d22976eee388323fb945b956660fc (patch) | |
tree | 4cb87588884b2e581fce027350d3368eaae84228 /config | |
parent | f6c108b79923728e9cc99262566d12f82c882bea (diff) |
fix: cgit port configuration.
Diffstat (limited to 'config')
-rw-r--r-- | config/cgit.nix | 4 | ||||
-rw-r--r-- | config/web-server.nix | 3 |
2 files changed, 5 insertions, 2 deletions
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/"; |