summaryrefslogtreecommitdiffstats
path: root/tv/2configs/binary-cache/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-12-23 09:46:32 +0100
committertv <tv@krebsco.de>2016-12-23 09:47:31 +0100
commit7a3e08e967da0452c76ffc10d1f6c476718c77df (patch)
tree3d5da18ec390c24fc3d21d648f4fbf2e9f481f67 /tv/2configs/binary-cache/default.nix
parente80054feaded04a35d991fdef7decf42e3f0fc66 (diff)
tv: replace krebs.nginx by services.nginx.virtualHosts
Diffstat (limited to 'tv/2configs/binary-cache/default.nix')
-rw-r--r--tv/2configs/binary-cache/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/tv/2configs/binary-cache/default.nix b/tv/2configs/binary-cache/default.nix
index 5902f1895..39c944b1a 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};
- '');
+ '';
};
};
}