summaryrefslogtreecommitdiffstats
path: root/lass/1systems/prism.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-08-31 08:44:43 +0200
committerlassulus <lass@aidsballs.de>2016-08-31 08:44:43 +0200
commit3d69e1ca47f8eaff51205c4dc0c3d79e8becec21 (patch)
tree680a6259f97f05b82f1c2262883c16465893dd4b /lass/1systems/prism.nix
parent62741d32f5d0ee57ee7e3988c512cb48cf2cfb63 (diff)
l 1 prism: enable public_html on port 8088
Diffstat (limited to 'lass/1systems/prism.nix')
-rw-r--r--lass/1systems/prism.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/lass/1systems/prism.nix b/lass/1systems/prism.nix
index 47e8a68b4..c7c765302 100644
--- a/lass/1systems/prism.nix
+++ b/lass/1systems/prism.nix
@@ -243,6 +243,23 @@ in {
];
};
}
+ {
+ krebs.nginx = {
+ enable = true;
+ servers.public = {
+ listen = [ "8088" ];
+ server-names = [ "default" ];
+ locations = [
+ (nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
+ alias /home/$1/public_html$2;
+ '')
+ ];
+ };
+ };
+ krebs.iptables.tables.filter.INPUT.rules = [
+ { predicate = "-p tcp --dport 8088"; target = "ACCEPT"; }
+ ];
+ }
];
krebs.build.host = config.krebs.hosts.prism;