summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx-public_html.nix
blob: 50c623915a5d7b3845ef1b176283d8ac3067080e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ lib, ... }:

with lib;

{
  krebs.nginx = {
    enable = true;
    servers.default.locations = [
      (nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
        alias /home/$1/public_html$2;
      '')
    ];
  };
}