stockholm/tv/2configs/nginx-public_html.nix
2016-02-14 16:43:44 +01:00

16 lines
291 B
Nix

{ config, lib, ... }:
with config.krebs.lib;
{
krebs.nginx = {
enable = true;
servers.default.locations = [
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
'')
];
};
tv.iptables.input-internet-accept-new-tcp = singleton "http";
}