nixos-config/config/services/reverse-proxy.nix

14 lines
362 B
Nix
Raw Normal View History

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;
extraConfig = ''
proxy_set_header Host $proxy_host;
'';
2022-04-15 08:27:53 +00:00
};
};
}