summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;