add custom ssl certs

This commit is contained in:
Sakooooo 2025-01-02 22:46:37 +04:00
parent 7d56748d5b
commit 5d0c7500e4
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -119,7 +119,12 @@ in {
};
};
services.nginx.virtualHosts."qbittorrent.sako.box" = {
locations."/" = { proxyPass = "http://localhost:${toString cfg.port}"; };
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";
forceSSL = true;
sslCertificate = "/srv/secrets/certs/sako.box.pem";
sslCertificateKey = "/srv/secrets/certs/sako.box-key.pem";
};
};
};