tv public_html: add server names

This commit is contained in:
tv 2016-12-22 21:53:09 +01:00
parent 72f465f719
commit 60a753e9d5

View File

@ -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";
}