From b3b66d2a133fed6743e251c7816ec5a4e51dc2c1 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 18 Apr 2019 08:32:33 +0200 Subject: [PATCH] ma binary-cache: add gum --- 2configs/binary-cache/gum.nix | 13 +++++++++++++ 2configs/binary-cache/server.nix | 7 ++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 2configs/binary-cache/gum.nix diff --git a/2configs/binary-cache/gum.nix b/2configs/binary-cache/gum.nix new file mode 100644 index 0000000..fc54bd9 --- /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 ad62568..c8f68c8 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}";