From a0042efc5a02aa4983e0fbb8fd3e47ea1c459f22 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 Signed-off-by: hexchen --- 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..a8ac79c 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 = { + + services.nginx.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 ];