summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-01 17:18:07 +0100
committertv <tv@krebsco.de>2016-02-01 17:18:07 +0100
commita7e1709a466cee24783e20b6219ef5112b00e8c9 (patch)
tree6c6b1a58217b0446e1f10c15ed4c2b018af9cbe7 /tv/2configs
parentf6a4131daecd6e5c1a0727adbcac43ba8530ec13 (diff)
tv nginx-public_html: init
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/nginx-public_html.nix14
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 00000000..50c62391
--- /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;
+ '')
+ ];
+ };
+}