summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/public_html.nix
blob: 9df8351ca65c1f0205b4f3ccd67e6374f3a39a72 (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;
        autoindex on;
      '')
    ];
  };
}