diff options
author | tv <tv@krebsco.de> | 2016-02-01 17:18:07 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-01 17:18:07 +0100 |
commit | caf6c841d4de0184e29b0523dbee169cbadc03d3 (patch) | |
tree | de9f3b9f0f47c332191ffec1bc53af1b158b889c /tv/2configs/nginx-public_html.nix | |
parent | d9808bba5855b096b69d0b9285550af59a005f85 (diff) |
tv nginx-public_html: init
Diffstat (limited to 'tv/2configs/nginx-public_html.nix')
-rw-r--r-- | tv/2configs/nginx-public_html.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tv/2configs/nginx-public_html.nix b/tv/2configs/nginx-public_html.nix new file mode 100644 index 0000000..50c6239 --- /dev/null +++ b/tv/2configs/nginx-public_html.nix @@ -0,0 +1,14 @@ +{ lib, ... }: + +with lib; + +{ + krebs.nginx = { + enable = true; + servers.default.locations = [ + (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + '') + ]; + }; +} |