2022-04-15 08:27:53 +00:00
|
|
|
{ ... }: {
|
|
|
|
services.nginx.virtualHosts."hydra.chir.rs" = {
|
|
|
|
sslCertificate = "/var/lib/acme/chir.rs/cert.pem";
|
|
|
|
sslCertificateKey = "/var/lib/acme/chir.rs/key.pem";
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "https://hydra.int.chir.rs";
|
|
|
|
proxyWebsockets = true;
|
2022-04-15 08:36:32 +00:00
|
|
|
extraConfig = ''
|
|
|
|
proxy_set_header Host $proxy_host;
|
|
|
|
'';
|
2022-04-15 08:27:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|