hyperilo: proxy websockets for console
This commit is contained in:
parent
e84a83e305
commit
776f860a92
|
@ -9,9 +9,20 @@
|
||||||
locations."/".basicAuthFile = "/run/secrets/hyperilo_htaccess";
|
locations."/".basicAuthFile = "/run/secrets/hyperilo_htaccess";
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
proxy_ssl_verify off;
|
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" = {
|
systemd.network.networks."20-hyperilo" = {
|
||||||
matchConfig.Name = "eno8303";
|
matchConfig.Name = "eno8303";
|
||||||
address = [ "192.168.0.1/24" ];
|
address = [ "192.168.0.1/24" ];
|
||||||
|
|
Loading…
Reference in a new issue