From 776f860a92afe15cf5f6ee876c30879403a78221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Fri, 6 Sep 2024 15:44:28 +0200 Subject: [PATCH] hyperilo: proxy websockets for console --- modules/web/hyperilo.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/web/hyperilo.nix b/modules/web/hyperilo.nix index 83fcb11..a9cd8f0 100644 --- a/modules/web/hyperilo.nix +++ b/modules/web/hyperilo.nix @@ -9,9 +9,20 @@ locations."/".basicAuthFile = "/run/secrets/hyperilo_htaccess"; locations."/".extraConfig = '' proxy_ssl_verify off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; ''; }; + # HP iLO requires uppercase Upgrade, not lowercase "upgrade" + services.nginx.commonHttpConfig = '' + map $http_upgrade $connection_upgrade_capitalized { + default Upgrade; + ''' close; + } + ''; + systemd.network.networks."20-hyperilo" = { matchConfig.Name = "eno8303"; address = [ "192.168.0.1/24" ];