diff options
author | makefu <github@syntax-fehler.de> | 2016-12-24 23:38:01 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-12-24 23:38:01 +0100 |
commit | 1745abde62a68800e065aca8c0d8452ebd005da6 (patch) | |
tree | 30c6a557e55bb6a78588ee73f68d8db59d9d217e /makefu/2configs/nginx/public_html.nix | |
parent | 78c50fe49599b5c3dd147ebd23253fa2abe53998 (diff) |
m 2 *: krebs.nginx -> services.nginx
Diffstat (limited to 'makefu/2configs/nginx/public_html.nix')
-rw-r--r-- | makefu/2configs/nginx/public_html.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/makefu/2configs/nginx/public_html.nix b/makefu/2configs/nginx/public_html.nix index 9545e98f4..676d1f110 100644 --- a/makefu/2configs/nginx/public_html.nix +++ b/makefu/2configs/nginx/public_html.nix @@ -3,13 +3,16 @@ with import <stockholm/lib>; { - 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; + ''; + }; + }; }; } |