stockholm/tv/2configs/nginx/public_html.nix

16 lines
287 B
Nix
Raw Normal View History

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