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