diff options
author | tv <tv@krebsco.de> | 2016-12-23 09:46:32 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-12-23 09:47:31 +0100 |
commit | 02f0ca1ff02e2d3b57e6eda924f829ba47390ca8 (patch) | |
tree | 2acadc7c4cf93ca9e682dc5bfa43a7fea2e780b1 /tv/2configs/binary-cache | |
parent | 4926f9bce46b77cba64719912b23aa44e990a929 (diff) |
tv: replace krebs.nginx by services.nginx.virtualHosts
Diffstat (limited to 'tv/2configs/binary-cache')
-rw-r--r-- | tv/2configs/binary-cache/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tv/2configs/binary-cache/default.nix b/tv/2configs/binary-cache/default.nix index 5902f18..39c944b 100644 --- a/tv/2configs/binary-cache/default.nix +++ b/tv/2configs/binary-cache/default.nix @@ -19,15 +19,15 @@ source-path = toString <secrets> + "/nix-serve.key"; }; - krebs.nginx = { + services.nginx = { enable = true; - servers.nix-serve = { - server-names = [ + virtualHosts.nix-serve = { + serverAliases = [ "cache.${config.krebs.build.host.name}.gg23" ]; - locations = singleton (nameValuePair "/" '' + locations."/".extraConfig = '' proxy_pass http://localhost:${toString config.services.nix-serve.port}; - ''); + ''; }; }; } |