tv public_html: add server names
This commit is contained in:
parent
72f465f719
commit
60a753e9d5
@ -5,11 +5,19 @@ with import <stockholm/lib>;
|
||||
{
|
||||
krebs.nginx = {
|
||||
enable = true;
|
||||
servers.default.locations = [
|
||||
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user