diff options
author | lassulus <lass@lassul.us> | 2017-03-14 23:10:53 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-03-14 23:10:53 +0100 |
commit | 58d123406c66368a551af9c50328321103313d66 (patch) | |
tree | c80896a67ce8d4fd9c9ef044139f943578e2a847 /lass/2configs | |
parent | 79387ddfc3e395d40bf644ce373d037d23e20910 (diff) |
l 2 bepasty: add paste.krebsco.de to extDoms
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/bepasty.nix | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/lass/2configs/bepasty.nix b/lass/2configs/bepasty.nix index a3c6d0f28..c2bc3f3cd 100644 --- a/lass/2configs/bepasty.nix +++ b/lass/2configs/bepasty.nix @@ -9,7 +9,10 @@ with import <stockholm/lib>; with import <stockholm/lib>; let secKey = import <secrets/bepasty-secret.nix>; - ext-dom = "paste.lassul.us" ; + ext-doms = [ + "paste.lassul.us" + "paste.krebsco.de" + ]; in { services.nginx.enable = mkDefault true; @@ -25,16 +28,15 @@ in { defaultPermissions = "admin,list,create,read,delete"; secretKey = secKey; }; - - "${ext-dom}" = { - nginx = { - enableSSL = true; - forceSSL = true; - enableACME = true; - }; - defaultPermissions = "read"; - secretKey = secKey; + } // + genAttrs ext-doms (ext-dom: { + nginx = { + enableSSL = true; + forceSSL = true; + enableACME = true; }; - }; + defaultPermissions = "read"; + secretKey = secKey; + }); }; } |