summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKJ Ørbekk <kj@orbekk.com>2017-08-09 07:16:32 -0400
committerKJ Ørbekk <kj@orbekk.com>2017-08-09 07:16:32 -0400
commitaff0263bf22d22976eee388323fb945b956660fc (patch)
tree4cb87588884b2e581fce027350d3368eaae84228
parentf6c108b79923728e9cc99262566d12f82c882bea (diff)
fix: cgit port configuration.
-rw-r--r--config/cgit.nix4
-rw-r--r--config/web-server.nix3
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/";