summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-02-11 23:21:11 +0100
committertv <tv@krebsco.de>2021-02-11 23:21:11 +0100
commit2ff744d3e932372e401a49e38f14cec9a699279d (patch)
treef79f52294f51d3b5304a75bbc85f0d9eff620816 /tv/2configs/nginx
parentbda725bbfc4a4e1ecf8a8fd8d3dbff69b5cf4d60 (diff)
tv public_html: move to /srv
Diffstat (limited to 'tv/2configs/nginx')
-rw-r--r--tv/2configs/nginx/public_html.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/tv/2configs/nginx/public_html.nix b/tv/2configs/nginx/public_html.nix
index a37498ba3..43d7189ef 100644
--- a/tv/2configs/nginx/public_html.nix
+++ b/tv/2configs/nginx/public_html.nix
@@ -12,9 +12,9 @@ with import <stockholm/lib>;
"${config.krebs.build.host.name}.hkw"
"${config.krebs.build.host.name}.r"
];
- locations."~ ^/~(.+?)(/.*)?\$".extraConfig = ''
- alias /home/$1/public_html$2;
- '';
+ locations."~ ^/~([a-z]+)(?:/(.*))?\$" = {
+ alias = "/srv/$1/public_html/$2";
+ };
};
};
tv.iptables.input-internet-accept-tcp = singleton "http";