From de849cd88c97f55a66a74a9aaca6cb6571dc25e2 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 29 Aug 2016 10:58:46 +0200 Subject: l 1 mors: enable public_html --- lass/1systems/mors.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lass/1systems/mors.nix b/lass/1systems/mors.nix index 228c76e2c..2f4299944 100644 --- a/lass/1systems/mors.nix +++ b/lass/1systems/mors.nix @@ -67,6 +67,16 @@ with config.krebs.lib; ''; }; } + { + krebs.nginx = { + enable = true; + servers.default.locations = [ + (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + '') + ]; + }; + } ]; krebs.build.host = config.krebs.hosts.mors; -- cgit v1.2.3