summaryrefslogtreecommitdiffstats
path: root/1systems
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-18 12:33:29 +0200
committertv <tv@shackspace.de>2015-07-18 12:33:29 +0200
commit62885ad0ddd74c92437c6074b8a8167a60095437 (patch)
tree526be34a5bb94b378dc51fe1268d48e02c1dd2ee /1systems
parentd819023370fbb182722e9d6819301973b1d42412 (diff)
1 tv cd: make public_html available on the Internet
Diffstat (limited to '1systems')
-rw-r--r--1systems/tv/cd.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/1systems/tv/cd.nix b/1systems/tv/cd.nix
index 1252f16c4..4826a0684 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;