From fb7bf971568b596cc09a15f7f5e23eb67590de5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KJ=20=C3=98rbekk?= Date: Fri, 8 Sep 2017 09:14:45 -0400 Subject: Add ssl endpoint for kufieta.net --- config/web-server.nix | 39 ++++++++++++++------------------------- 1 file changed, 14 insertions(+), 25 deletions(-) (limited to 'config/web-server.nix') diff --git a/config/web-server.nix b/config/web-server.nix index 6add97c..179d9d3 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -11,29 +11,21 @@ # large downloads. proxy_buffering off; ''; - virtualHosts = { - "orbekk.no" = { - enableACME = true; - forceSSL = true; - addSSL = true; + virtualHosts = let template = { + enableACME = true; + forceSSL = true; + }; + in { + "orbekk.no" = template // { root = "/storage/srv/orbekk.com"; }; - "orbekk.com" = { - enableACME = true; - forceSSL = true; - addSSL = true; + "orbekk.com" = template // { root = "/storage/srv/orbekk.com"; }; - "shape.orbekk.com" = { - enableACME = true; - forceSSL = true; - addSSL = true; + "shape.orbekk.com" = template // { root = "/storage/srv/orbekk.com"; }; - "kj.orbekk.com" = { - enableACME = true; - forceSSL = true; - addSSL = true; + "kj.orbekk.com" = template // { root = "${pkgs.www-orbekk}"; locations."/" = { extraConfig = '' @@ -63,20 +55,17 @@ proxyPass = "http://10.0.20.15:11102"; }; }; - "git.orbekk.com" = { - enableACME = true; - forceSSL = true; - addSSL = true; + "git.orbekk.com" = template // { locations."/".proxyPass = "http://10.0.20.15:11103"; }; - "hydra.orbekk.com" = { - enableACME = true; - forceSSL = true; - addSSL = true; + "hydra.orbekk.com" = template // { locations."/" = { proxyPass = "http://10.0.20.15:11101"; }; }; + "kufieta.net" = template // { + locations."/".proxyPass = "http://10.0.20.13"; + }; }; }; } -- cgit v1.2.3