ma 2 nginx/public_html: publish home

This commit is contained in:
makefu 2016-04-03 21:44:11 +02:00
parent bc72bad6e2
commit c8b8dac1db

View File

@ -0,0 +1,15 @@
{ config, lib, ... }:
with config.krebs.lib;
{
krebs.nginx = {
enable = true;
servers.default.locations = [
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
autoindex on;
'')
];
};
}