stockholm/makefu/2configs/nginx/public_html.nix
2016-12-24 23:38:01 +01:00

19 lines
311 B
Nix

{ config, lib, ... }:
with import <stockholm/lib>;
{
services.nginx = {
enable = true;
virtualHosts.default = {
default = true;
locations = {
"~ ^/~(.+?)(/.*)?\$".extraConfig = ''
alias /home/$1/public_html$2;
autoindex on;
'';
};
};
};
}