summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx/public_html.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-12-23 09:46:32 +0100
committertv <tv@krebsco.de>2016-12-24 06:52:34 +0100
commiteafa36c2b10ddf16163007aa58ed5e2444c251b6 (patch)
tree471d7b8b6488e8cbe46e752aeb36a2faa2b3574f /tv/2configs/nginx/public_html.nix
parent03689799d66e8a58caf340e721e229524091eb2d (diff)
tv: replace krebs.nginx by services.nginx.virtualHosts
Diffstat (limited to 'tv/2configs/nginx/public_html.nix')
-rw-r--r--tv/2configs/nginx/public_html.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/tv/2configs/nginx/public_html.nix b/tv/2configs/nginx/public_html.nix
index 4c74d2250..9744da1e8 100644
--- a/tv/2configs/nginx/public_html.nix
+++ b/tv/2configs/nginx/public_html.nix
@@ -3,20 +3,18 @@
with import <stockholm/lib>;
{
- krebs.nginx = {
+ services.nginx = {
enable = true;
- servers.default = {
- server-names = [
+ virtualHosts.default = {
+ serverAliases = [
"localhost"
"${config.krebs.build.host.name}"
"${config.krebs.build.host.name}.r"
"${config.krebs.build.host.name}.retiolum"
];
- locations = [
- (nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
- alias /home/$1/public_html$2;
- '')
- ];
+ locations."~ ^/~(.+?)(/.*)?\$".extraConfig = ''
+ alias /home/$1/public_html$2;
+ '';
};
};
tv.iptables.input-internet-accept-tcp = singleton "http";