diff options
author | tv <tv@krebsco.de> | 2015-07-18 12:33:29 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-07-18 12:33:29 +0200 |
commit | b02927de5f818bf8637f26c3dbb4bd172b835850 (patch) | |
tree | 526be34a5bb94b378dc51fe1268d48e02c1dd2ee | |
parent | 66ac57fa781d2375ede14aa1b7ac41c17550e3d3 (diff) |
1 tv cd: make public_html available on the Internet
-rw-r--r-- | 1systems/tv/cd.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1systems/tv/cd.nix b/1systems/tv/cd.nix index 1252f16..4826a06 100644 --- a/1systems/tv/cd.nix +++ b/1systems/tv/cd.nix @@ -49,6 +49,20 @@ with lib; 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 = { enable = true; |