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

19 lines
311 B
Nix
Raw Normal View History

2016-04-03 19:44:11 +00:00
{ config, lib, ... }:
2016-10-20 18:54:38 +00:00
with import <stockholm/lib>;
2016-04-03 19:44:11 +00:00
{
2016-12-24 22:38:01 +00:00
services.nginx = {
2016-04-03 19:44:11 +00:00
enable = true;
2016-12-24 22:38:01 +00:00
virtualHosts.default = {
default = true;
locations = {
"~ ^/~(.+?)(/.*)?\$".extraConfig = ''
alias /home/$1/public_html$2;
autoindex on;
'';
};
};
2016-04-03 19:44:11 +00:00
};
}