stockholm/tv/2configs/nginx/public_html.nix
2016-10-20 20:54:38 +02:00

16 lines
293 B
Nix

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