Added proxy to gitlab pages for rc3 cluster site

Signed-off-by: hexchen <hexchen@lilwit.ch>
This commit is contained in:
Matthias Stübinger 2020-12-08 17:57:35 +01:00 committed by hexchen
parent 4c8d4af865
commit a0042efc5a

View file

@ -7,7 +7,16 @@
services.nginx.package = pkgs.nginx.override { services.nginx.package = pkgs.nginx.override {
modules = [ pkgs.nginxModules.rtmp ]; 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" = { "hainich.chaoswit.ch" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
@ -21,6 +30,8 @@
}; };
}; };
}; };
"freedom.rc3.io" = rc3clustersite;
"future.rc3.io" = rc3clustersite;
}; };
networking.firewall.allowedTCPPorts = [ 1935 ]; networking.firewall.allowedTCPPorts = [ 1935 ];