diff options
author | tv <tv@krebsco.de> | 2016-12-22 21:53:09 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-12-22 21:53:09 +0100 |
commit | c36b399e66a7bb62c553e95daafb46cb8d9ce152 (patch) | |
tree | 8a66080eb90f49df05b611fdf0722fbf1611a185 /tv/2configs/nginx/public_html.nix | |
parent | 85002f409e9f8acb99a21a1b81d87e5d100de574 (diff) |
tv public_html: add server names
Diffstat (limited to 'tv/2configs/nginx/public_html.nix')
-rw-r--r-- | tv/2configs/nginx/public_html.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tv/2configs/nginx/public_html.nix b/tv/2configs/nginx/public_html.nix index e0bbb8d..4c74d22 100644 --- a/tv/2configs/nginx/public_html.nix +++ b/tv/2configs/nginx/public_html.nix @@ -5,11 +5,19 @@ with import <stockholm/lib>; { krebs.nginx = { enable = true; - servers.default.locations = [ - (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' - alias /home/$1/public_html$2; - '') - ]; + servers.default = { + server-names = [ + "localhost" + "${config.krebs.build.host.name}" + "${config.krebs.build.host.name}.r" + "${config.krebs.build.host.name}.retiolum" + ]; + locations = [ + (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + '') + ]; + }; }; tv.iptables.input-internet-accept-tcp = singleton "http"; } |