l 1 mors: expose public_html to LAN

This commit is contained in:
lassulus 2016-12-22 23:23:59 +01:00
parent 7a7c832310
commit 3d96bcf846

View File

@ -68,11 +68,19 @@ with import <stockholm/lib>;
{ {
krebs.nginx = { krebs.nginx = {
enable = true; enable = true;
servers.default.locations = [ servers.default = {
(nameValuePair "~ ^/~(.+?)(/.*)?\$" '' server-names = [
alias /home/$1/public_html$2; "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;
'')
];
};
}; };
} }
{ {