add hyperilo reverse proxy
This commit is contained in:
parent
0d0512a539
commit
c1a0b67261
|
@ -11,5 +11,6 @@
|
||||||
./sharepic.nix
|
./sharepic.nix
|
||||||
./userdir.nix
|
./userdir.nix
|
||||||
./ftp.nix
|
./ftp.nix
|
||||||
|
./hyperilo.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
23
modules/web/hyperilo.nix
Normal file
23
modules/web/hyperilo.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# provide access to iLO of colocated server
|
||||||
|
# in case of questions, contact @bennofs
|
||||||
|
services.nginx.virtualHosts."hyperilo.deutschland.gmbh" = {
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "https://192.168.0.120:443";
|
||||||
|
locations."/".basicAuthFile = "/run/secrets/hyperilo_htaccess";
|
||||||
|
locations."/".extraConfig = ''
|
||||||
|
proxy_ssl_verify off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network.networks."20-hyperilo" = {
|
||||||
|
matchConfig.Name = "eno8303";
|
||||||
|
address = [ "192.168.0.1/24" ];
|
||||||
|
networkConfig.LLDP = true;
|
||||||
|
networkConfig.EmitLLDP = "nearest-bridge";
|
||||||
|
};
|
||||||
|
|
||||||
|
sops.secrets."hyperilo_htaccess".owner = "nginx";
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue