summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-04-18 08:32:33 +0200
committermakefu <github@syntax-fehler.de>2019-04-18 08:32:33 +0200
commitb3b66d2a133fed6743e251c7816ec5a4e51dc2c1 (patch)
tree1930706804def1ad2b93a925252e354dcf881a09 /2configs
parenta00ace93153012948f39430745e1d9124ac79366 (diff)
ma binary-cache: add gum
Diffstat (limited to '2configs')
-rw-r--r--2configs/binary-cache/gum.nix13
-rw-r--r--2configs/binary-cache/server.nix7
2 files changed, 17 insertions, 3 deletions
diff --git a/2configs/binary-cache/gum.nix b/2configs/binary-cache/gum.nix
new file mode 100644
index 000000000..fc54bd917
--- /dev/null
+++ b/2configs/binary-cache/gum.nix
@@ -0,0 +1,13 @@
+
+{ config, ... }:
+
+{
+ nix = {
+ binaryCaches = [
+ "https://cache.euer.krebsco.de/"
+ ];
+ binaryCachePublicKeys = [
+ "gum:iIXIFlCAotib+MgI3V/i3HMlFXiVYOT/jfP0y54Zuvg="
+ ];
+ };
+}
diff --git a/2configs/binary-cache/server.nix b/2configs/binary-cache/server.nix
index ad6256830..c8f68c84d 100644
--- a/2configs/binary-cache/server.nix
+++ b/2configs/binary-cache/server.nix
@@ -19,9 +19,10 @@
};
services.nginx = {
enable = true;
- virtualHosts.nix-serve = {
- serverAliases = [ "cache.gum.r"
- "cache.euer.krebsco.de"
+ virtualHosts."cache.euer.krebsco.de" = {
+ forceSSL = true;
+ enableACME = true;
+ serverAliases = [ # "cache.gum.r"
"cache.gum.krebsco.de"
];
locations."/".proxyPass= "http://localhost:${toString config.services.nix-serve.port}";