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