2016-02-14 15:43:44 +00:00
|
|
|
{ config, lib, ... }:
|
2016-02-01 16:18:07 +00:00
|
|
|
|
2016-02-14 15:43:44 +00:00
|
|
|
with config.krebs.lib;
|
2016-02-01 16:18:07 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
krebs.nginx = {
|
|
|
|
enable = true;
|
|
|
|
servers.default.locations = [
|
|
|
|
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
|
|
|
|
alias /home/$1/public_html$2;
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
2016-06-29 22:52:35 +00:00
|
|
|
tv.iptables.input-internet-accept-tcp = singleton "http";
|
2016-02-01 16:18:07 +00:00
|
|
|
}
|