1 tv cd: make public_html available on the Internet

This commit is contained in:
tv 2015-07-18 12:33:29 +02:00
parent d819023370
commit 62885ad0dd

View file

@ -48,6 +48,20 @@ with lib;
tv.iptables.input-internet-accept-new-tcp = singleton "http";
tv.nginx.servers.cgit.server-names = singleton "cgit.cd.viljetic.de";
}
{
# TODO make public_html also available to cd, cd.retiolum (AKA default)
imports = [
../../3modules/tv/iptables.nix
../../3modules/tv/nginx.nix
];
tv.iptables.input-internet-accept-new-tcp = singleton "http";
tv.nginx.servers.public_html = {
server-names = singleton "cd.viljetic.de";
locations = singleton (nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
alias /home/$1/public_html$2;
'');
};
}
{
imports = [ ../../3modules/tv/retiolum.nix ];
tv.retiolum = {