summaryrefslogtreecommitdiffstats
path: root/tv/2configs/binary-cache
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-12-24 15:39:37 +0100
committermakefu <github@syntax-fehler.de>2016-12-24 15:39:37 +0100
commit78c50fe49599b5c3dd147ebd23253fa2abe53998 (patch)
tree6d609ffc1c59ed6bdb35ef354c5b96de7858e778 /tv/2configs/binary-cache
parentd385e3c6968d9317b7d8adea3671c79258a24cec (diff)
parentbece7d9da29adde2c79e49c40d975dc46eed4c1e (diff)
Merge remote-tracking branch 'tv/master'
Diffstat (limited to 'tv/2configs/binary-cache')
-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};
- '');
+ '';
};
};
}