summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx/public_html.nix
blob: 15a3b54824c04bd0baf7a55249eff8df29110753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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";
}