From 78d2fcb20ea58a3cada8b6a31cbdc71f4b316d8e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:21:01 +0400 Subject: [PATCH] crisis averted --- modules/server/media/qbittorrent.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/server/media/qbittorrent.nix b/modules/server/media/qbittorrent.nix index 7f6d9b8e..adf0d822 100644 --- a/modules/server/media/qbittorrent.nix +++ b/modules/server/media/qbittorrent.nix @@ -113,6 +113,10 @@ in { ExecStart = "${cfg.package}/bin/qbittorrent-nox"; }; + services.nginx.virtualhost."qbittorrent.sako.box" = { + proxyPass = "http://localhost:${toString cfg.port}"; + }; + environment = { QBT_PROFILE = cfg.dataDir; QBT_WEBUI_PORT = toString cfg.port;