summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-11-27 04:01:13 +0100
committerlassulus <lassulus@lassul.us>2018-11-27 04:19:07 +0100
commitd1020af2b3aac2d823240627980f846e6dc9797c (patch)
tree1f671bf764cfe96ab6f9fb20fca282bfbba85cea
parent0b6c07ad7203634af4131ed3fb6f64c1c7fc45ff (diff)
l: add ssl for cache.{krebsco.de,lassul.us}
-rw-r--r--lass/2configs/binary-cache/server.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/lass/2configs/binary-cache/server.nix b/lass/2configs/binary-cache/server.nix
index 220e41d0a..86158c468 100644
--- a/lass/2configs/binary-cache/server.nix
+++ b/lass/2configs/binary-cache/server.nix
@@ -20,7 +20,14 @@
services.nginx = {
enable = true;
virtualHosts.nix-serve = {
- serverAliases = [ "cache.prism.r" "cache.krebsco.de" "cache.lassul.us" ];
+ serverAliases = [ "cache.prism.r" ];
+ locations."/".extraConfig = ''
+ proxy_pass http://localhost:${toString config.services.nix-serve.port};
+ '';
+ };
+ virtualHosts."cache.krebsco.de" = {
+ serverAliases = [ "cache.lassul.us" ];
+ enableACME = true;
locations."/".extraConfig = ''
proxy_pass http://localhost:${toString config.services.nix-serve.port};
'';