diff --git a/modules/server/media/qbittorrent.nix b/modules/server/media/qbittorrent.nix index 0fc01aa5..22a80292 100644 --- a/modules/server/media/qbittorrent.nix +++ b/modules/server/media/qbittorrent.nix @@ -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"; + }; }; };