diff options
author | makefu <github@syntax-fehler.de> | 2017-03-16 23:28:32 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-03-16 23:28:32 +0100 |
commit | 4b29caff2681d21ce4be687321fa4ab2f7713cd4 (patch) | |
tree | c0f59f1eafd87863173a957da3d5b79d69102b83 /lass/2configs/bepasty.nix | |
parent | 6ec1a6296930569c97cf029bad17c998d4fae66d (diff) | |
parent | 8809797f1063945c03ebd70666c108c45d5d724a (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/bepasty.nix')
-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; + }); }; } |