stockholm/tv/2configs/nginx-public_html.nix

15 lines
206 B
Nix
Raw Normal View History

2016-02-01 16:18:07 +00:00
{ lib, ... }:
with lib;
{
krebs.nginx = {
enable = true;
servers.default.locations = [
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
'')
];
};
}