diff options
author | lassulus <lass@aidsballs.de> | 2016-07-23 19:21:23 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-07-23 19:21:23 +0200 |
commit | f978c5312e1f88dd936495ff0fcd3a3aa032d90f (patch) | |
tree | 56e10a2cf4ced3d18d4ee8bfd4ba066e42a079d2 /krebs/3modules/nginx.nix | |
parent | 29ef105c46287bb9964269004a56c51d4a2834bd (diff) | |
parent | c546bc8c2dc1ec0fa120c79df3de4d977ce322ed (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/nginx.nix')
-rw-r--r-- | krebs/3modules/nginx.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/krebs/3modules/nginx.nix b/krebs/3modules/nginx.nix index fc7fcca6f..bc32da3b1 100644 --- a/krebs/3modules/nginx.nix +++ b/krebs/3modules/nginx.nix @@ -31,12 +31,10 @@ let options = { server-names = mkOption { type = with types; listOf str; - # TODO use identity - default = [ - "${config.networking.hostName}" - "${config.networking.hostName}.r" - "${config.networking.hostName}.retiolum" - ]; + default = + [config.krebs.build.host.name] ++ + concatMap (getAttr "aliases") + (attrValues config.krebs.build.host.nets); }; listen = mkOption { type = with types; either str (listOf str); |