From b278e68102ceedcd0756c67a3cff6b4f1c1321bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20St=C3=BCbinger?= Date: Tue, 8 Dec 2020 17:57:35 +0100 Subject: [PATCH] Added proxy to gitlab pages for rc3 cluster site --- configuration/hosts/hainich/services/nginx.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration/hosts/hainich/services/nginx.nix b/configuration/hosts/hainich/services/nginx.nix index e2f40d9..1877e85 100644 --- a/configuration/hosts/hainich/services/nginx.nix +++ b/configuration/hosts/hainich/services/nginx.nix @@ -7,7 +7,16 @@ services.nginx.package = pkgs.nginx.override { modules = [ pkgs.nginxModules.rtmp ]; }; - services.nginx.virtualHosts = { + + recommendedProxySettings = true; + + services.nginx.virtualHosts = let + rc3clustersite = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "https://stuebinm.4future.dev/about-future-website/"; + }; + in { "hainich.chaoswit.ch" = { enableACME = true; forceSSL = true; @@ -21,6 +30,8 @@ }; }; }; + "freedom.rc3.io" = rc3clustersite; + "future.rc3.io" = rc3clustersite; }; networking.firewall.allowedTCPPorts = [ 1935 ];