diff --git a/modules/server/media/qbittorrent.nix b/modules/server/media/qbittorrent.nix index 9c4463bd..6a53be0b 100644 --- a/modules/server/media/qbittorrent.nix +++ b/modules/server/media/qbittorrent.nix @@ -120,11 +120,9 @@ in { }; services.nginx.virtualHosts."qbittorrent.sako.box" = { forceSSL = true; - locations."/" = { - proxyPass = "http://localhost:${toString cfg.port}"; - sslCertificate = "/srv/secrets/certs/sako.box.pem"; - sslCertificateKey = "/srv/secrets/certs/sako.box-key.pem"; - }; + sslCertificate = "/srv/secrets/certs/sako.box.pem"; + sslCertificateKey = "/srv/secrets/certs/sako.box-key.pem"; + locations."/" = { proxyPass = "http://localhost:${toString cfg.port}"; }; }; };