l 1 mors: expose public_html to LAN
This commit is contained in:
parent
7a7c832310
commit
3d96bcf846
|
@ -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;
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user