From 5d0c7500e4a7369f131585f5c2b13f2058b0edf1 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 2 Jan 2025 22:46:37 +0400 Subject: [PATCH] add custom ssl certs --- modules/server/media/qbittorrent.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"; + }; }; };