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 | 60a753e9d54ceef30f58b0fa689d666ebc06452d (patch) | |
tree | dfdf79345560cac3e3438f46741d70d42b70f975 /tv/2configs/nginx | |
parent | 72f465f719d362fb54c061979d2ad87a5c203b5b (diff) |
tv public_html: add server names
Diffstat (limited to 'tv/2configs/nginx')
-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 e0bbb8d57..4c74d2250 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"; } |