diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-11 14:33:31 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-11 14:33:31 +0100 |
commit | ce0ef8aaacdacd7c90f0d751cc0381ef25fb2fbd (patch) | |
tree | fc07a72f4557d4b3ece77d1a0f1c3236a17b58c9 /nixos/sites/default.nix | |
parent | 9ad90b5274f42565982532e12de2645a87fe8129 (diff) |
add sites.proxyLocationSocket()
Diffstat (limited to 'nixos/sites/default.nix')
-rw-r--r-- | nixos/sites/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nixos/sites/default.nix b/nixos/sites/default.nix index b2b15e0..bd35924 100644 --- a/nixos/sites/default.nix +++ b/nixos/sites/default.nix @@ -1,6 +1,6 @@ { pkgs, ... }: -{ +rec { catbus-web-ui = pkgs.callPackage ./catbus-web-ui.nix {}; cgit = pkgs.callPackage ./cgit.nix {}; go-packages = pkgs.callPackage ./go-packages.nix {}; @@ -37,9 +37,10 @@ proxySocket = socketPath: { locations = { - "/" = { - proxyPass = "http://unix:/${socketPath}"; - }; + "/" = proxyLocationSocket socketPath; }; }; + proxyLocationSocket = socketPath: { + proxyPass = "http://unix:${socketPath}"; + }; } |