From 87e67356625172c71fff29cb4edead757dfb4e03 Mon Sep 17 00:00:00 2001 From: June Date: Tue, 5 Dec 2023 18:26:16 +0100 Subject: [PATCH] Switch to new proxyProtocol option instead of using extraParameters --- config/hosts/matrix/nginx.nix | 4 ++-- config/hosts/netbox/nginx.nix | 2 +- .../virtualHosts/branding-resources.hamburg.ccc.de.nix | 2 +- .../public-web-static/virtualHosts/element.hamburg.ccc.de.nix | 2 +- .../public-web-static/virtualHosts/next.hamburg.ccc.de.nix | 2 +- .../virtualHosts/spaceapi.hamburg.ccc.de.nix | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/hosts/matrix/nginx.nix b/config/hosts/matrix/nginx.nix index f498456..03dba97 100644 --- a/config/hosts/matrix/nginx.nix +++ b/config/hosts/matrix/nginx.nix @@ -27,13 +27,13 @@ addr = "0.0.0.0"; port = 8443; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } { addr = "0.0.0.0"; port = 8448; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } ]; diff --git a/config/hosts/netbox/nginx.nix b/config/hosts/netbox/nginx.nix index bf51ebe..2673cdc 100644 --- a/config/hosts/netbox/nginx.nix +++ b/config/hosts/netbox/nginx.nix @@ -35,7 +35,7 @@ addr = "0.0.0.0"; port = 8443; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } ]; diff --git a/config/hosts/public-web-static/virtualHosts/branding-resources.hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/branding-resources.hamburg.ccc.de.nix index a37baf1..a28f77c 100644 --- a/config/hosts/public-web-static/virtualHosts/branding-resources.hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/branding-resources.hamburg.ccc.de.nix @@ -30,7 +30,7 @@ in addr = "0.0.0.0"; port = 8443; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } ]; diff --git a/config/hosts/public-web-static/virtualHosts/element.hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/element.hamburg.ccc.de.nix index 5af4ab9..a72703a 100644 --- a/config/hosts/public-web-static/virtualHosts/element.hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/element.hamburg.ccc.de.nix @@ -39,7 +39,7 @@ in addr = "0.0.0.0"; port = 8443; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } ]; diff --git a/config/hosts/public-web-static/virtualHosts/next.hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/next.hamburg.ccc.de.nix index 592d04a..a0dff81 100644 --- a/config/hosts/public-web-static/virtualHosts/next.hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/next.hamburg.ccc.de.nix @@ -23,7 +23,7 @@ addr = "0.0.0.0"; port = 8443; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } ]; diff --git a/config/hosts/public-web-static/virtualHosts/spaceapi.hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/spaceapi.hamburg.ccc.de.nix index 21303dc..7852639 100644 --- a/config/hosts/public-web-static/virtualHosts/spaceapi.hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/spaceapi.hamburg.ccc.de.nix @@ -23,7 +23,7 @@ addr = "0.0.0.0"; port = 8443; ssl = true; - extraParameters = [ "proxy_protocol" ]; + proxyProtocol = true; } ];