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 = {
|
krebs.nginx = {
|
||||||
enable = true;
|
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 "~ ^/~(.+?)(/.*)?\$" ''
|
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
|
||||||
alias /home/$1/public_html$2;
|
alias /home/$1/public_html$2;
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
tv.iptables.input-internet-accept-tcp = singleton "http";
|
tv.iptables.input-internet-accept-tcp = singleton "http";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user