stockholm/makefu/2configs/nginx/public_html.nix

16 lines
249 B
Nix
Raw Normal View History

2016-04-03 19:44:11 +00:00
{ config, lib, ... }:
with config.krebs.lib;
{
krebs.nginx = {
enable = true;
servers.default.locations = [
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
autoindex on;
'')
];
};
}