diff options
author | lassulus <lass@aidsballs.de> | 2016-04-09 00:49:56 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-04-09 00:49:56 +0200 |
commit | e57841421bbb818572145dfec3dce12bf40017b4 (patch) | |
tree | 329c116cccc0e10bb6bcc74331933171bf195f12 /makefu/2configs/nginx/public_html.nix | |
parent | 5268f22ee99672a2185b959231208a23fd24f073 (diff) | |
parent | 345efd36833fc0ada2805b46fd71bcc9642f4374 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'makefu/2configs/nginx/public_html.nix')
-rw-r--r-- | makefu/2configs/nginx/public_html.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/public_html.nix b/makefu/2configs/nginx/public_html.nix new file mode 100644 index 000000000..9df8351ca --- /dev/null +++ b/makefu/2configs/nginx/public_html.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: + +with config.krebs.lib; + +{ + krebs.nginx = { + enable = true; + servers.default.locations = [ + (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + autoindex on; + '') + ]; + }; +} |