summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/public_html.nix
blob: 676d1f110fc9303352545ef6d99c3288e021ed90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }:

with import <stockholm/lib>;

{
  services.nginx = {
    enable = true;
    virtualHosts.default = {
      default = true;
      locations = {
        "~ ^/~(.+?)(/.*)?\$".extraConfig = ''
          alias /home/$1/public_html$2;
          autoindex on;
        '';
      };
    };
  };
}