From 6097e792d09d7caab54f7e9af3141de1c899ca36 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 24 Dec 2016 23:38:01 +0100 Subject: m 2 *: krebs.nginx -> services.nginx --- 2configs/nginx/public_html.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to '2configs/nginx/public_html.nix') diff --git a/2configs/nginx/public_html.nix b/2configs/nginx/public_html.nix index 9545e98f4..676d1f110 100644 --- a/2configs/nginx/public_html.nix +++ b/2configs/nginx/public_html.nix @@ -3,13 +3,16 @@ with import ; { - krebs.nginx = { + services.nginx = { enable = true; - servers.default.locations = [ - (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' - alias /home/$1/public_html$2; - autoindex on; - '') - ]; + virtualHosts.default = { + default = true; + locations = { + "~ ^/~(.+?)(/.*)?\$".extraConfig = '' + alias /home/$1/public_html$2; + autoindex on; + ''; + }; + }; }; } -- cgit v1.2.3