1
0
Fork 0

Services: replace qBt with headless version

This commit is contained in:
Aires 2024-09-10 20:56:43 -04:00
parent c05c4f0a14
commit b908977f9a
2 changed files with 6 additions and 6 deletions

View file

@ -378,10 +378,10 @@
"secrets": {
"flake": false,
"locked": {
"lastModified": 1726013505,
"lastModified": 1726013710,
"narHash": "sha256-0xzIUXzp3P5sUVB2XLmtxXoxleqHdSw9j/hpbcOCpRg=",
"ref": "refs/heads/main",
"rev": "75970a6034cc961a749d07d9c51ef9f8f8f48848",
"rev": "967332abfd758e3922cb676fd594a220f9b0fa8f",
"revCount": 73,
"type": "git",
"url": "file:./secrets"

View file

@ -10,7 +10,7 @@ let
UID = 850;
GID = 850;
package = pkgs.qbittorrent-nox;
port = 8080;
port = "8090";
in
{
options = {
@ -47,7 +47,7 @@ in
useACMEHost = pkgs.util.getDomainFromURL cfg.url;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
proxyPass = "http://127.0.0.1:${port}";
extraConfig = ''
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
@ -87,12 +87,12 @@ in
'';
in
"!${preStartScript}";
ExecStart = "${package}/bin/qbittorrent";
ExecStart = "${package}/bin/qbittorrent-nox";
};
environment = {
QBT_PROFILE = cfg.home;
QBT_WEBUI_PORT = toString port;
QBT_WEBUI_PORT = port;
};
};