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

11 lines
286 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;
};
};
}