Services: replace qBt with headless version
This commit is contained in:
parent
c05c4f0a14
commit
b908977f9a
|
@ -378,10 +378,10 @@
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726013505,
|
"lastModified": 1726013710,
|
||||||
"narHash": "sha256-0xzIUXzp3P5sUVB2XLmtxXoxleqHdSw9j/hpbcOCpRg=",
|
"narHash": "sha256-0xzIUXzp3P5sUVB2XLmtxXoxleqHdSw9j/hpbcOCpRg=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "75970a6034cc961a749d07d9c51ef9f8f8f48848",
|
"rev": "967332abfd758e3922cb676fd594a220f9b0fa8f",
|
||||||
"revCount": 73,
|
"revCount": 73,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:./secrets"
|
"url": "file:./secrets"
|
||||||
|
|
|
@ -10,7 +10,7 @@ let
|
||||||
UID = 850;
|
UID = 850;
|
||||||
GID = 850;
|
GID = 850;
|
||||||
package = pkgs.qbittorrent-nox;
|
package = pkgs.qbittorrent-nox;
|
||||||
port = 8080;
|
port = "8090";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
@ -47,7 +47,7 @@ in
|
||||||
useACMEHost = pkgs.util.getDomainFromURL cfg.url;
|
useACMEHost = pkgs.util.getDomainFromURL cfg.url;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:8080";
|
proxyPass = "http://127.0.0.1:${port}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
@ -87,12 +87,12 @@ in
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
"!${preStartScript}";
|
"!${preStartScript}";
|
||||||
ExecStart = "${package}/bin/qbittorrent";
|
ExecStart = "${package}/bin/qbittorrent-nox";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
QBT_PROFILE = cfg.home;
|
QBT_PROFILE = cfg.home;
|
||||||
QBT_WEBUI_PORT = toString port;
|
QBT_WEBUI_PORT = port;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue