okarin/qbittorrent: Init

This commit is contained in:
Simon Bruder 2022-03-19 10:17:25 +01:00
parent 0e3bd19aa8
commit ea88259856
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
7 changed files with 25 additions and 7 deletions

View file

@ -71,10 +71,14 @@ in
} }
{ {
job_name = "qbittorrent"; job_name = "qbittorrent";
static_configs = mkStaticTarget "127.0.0.1:9561"; static_configs = mkStaticTargets [
"fuuko.vpn.sbruder.de:9561"
"okarin.vpn.sbruder.de:9561"
];
relabel_configs = lib.singleton { relabel_configs = lib.singleton {
target_label = "instance"; target_label = "instance";
replacement = "torrent.sbruder.de"; source_labels = lib.singleton "__address__";
regex = "(.*)\\.vpn\\.sbruder\\.de:9561";
}; };
} }
{ {

View file

@ -13,11 +13,17 @@
./services/mumble.nix ./services/mumble.nix
./services/nitter.nix ./services/nitter.nix
./services/sbruder.xyz ./services/sbruder.xyz
./services/torrent.nix
]; ];
sbruder = { sbruder = {
nginx.hardening.enable = true; nginx.hardening.enable = true;
restic.system.enable = true; restic.system = {
enable = true;
extraExcludes = [
"/var/lib/qbittorrent/download"
];
};
wireguard.home.enable = true; wireguard.home.enable = true;
}; };

View file

@ -1,15 +1,16 @@
wg-home-private-key: ENC[AES256_GCM,data:UMNY28f8D4VN86s8RqhBbfCgBzLWOmAu1Id7RyIfp1Ta/BvgtfOz70Y3hvs=,iv:ph2O/wBwwThHnNQ5sHIc9ZOC6EXHM3fv4z3esTpJuj0=,tag:pROjuUte4+OZxPlhppceWA==,type:str]
gitea-mail: ENC[AES256_GCM,data:7pW7M9SVkdhGD1I/WQW2K/C/HQHBWGP+S0cXlo5rTaQ=,iv:fj3ercPsBhTZnGZFPVxd2wQ2wNmA3IYNz7xnf3P1Tjc=,tag:BJxcUoa+ZezGLKfHmXJJVg==,type:str] gitea-mail: ENC[AES256_GCM,data:7pW7M9SVkdhGD1I/WQW2K/C/HQHBWGP+S0cXlo5rTaQ=,iv:fj3ercPsBhTZnGZFPVxd2wQ2wNmA3IYNz7xnf3P1Tjc=,tag:BJxcUoa+ZezGLKfHmXJJVg==,type:str]
invidious-extra-settings: ENC[AES256_GCM,data:PVdEqmWBvz72Knq0K/oZMfC4f4ygib7QJ4tMua4CeeSFchQirD3bhHKEPxfzJ5KxIZwH3otLjB8wAFJ+fDCQsrf5owJwP+4gxPFjlpk3nFiB,iv:Q0Lmr9ZO5ijIZ4sDNo5YollD6DaHN56RyV8MJgNctHI=,tag:5W3euSI7OPJ0BYvrEZjH+g==,type:str] invidious-extra-settings: ENC[AES256_GCM,data:PVdEqmWBvz72Knq0K/oZMfC4f4ygib7QJ4tMua4CeeSFchQirD3bhHKEPxfzJ5KxIZwH3otLjB8wAFJ+fDCQsrf5owJwP+4gxPFjlpk3nFiB,iv:Q0Lmr9ZO5ijIZ4sDNo5YollD6DaHN56RyV8MJgNctHI=,tag:5W3euSI7OPJ0BYvrEZjH+g==,type:str]
murmur-superuser: ENC[AES256_GCM,data:yPiP2Vh6Zf9OSy0hlP0DsNykbhR2VvCLzA==,iv:+GEChmJtE2bnQ35uke4QXRDO3vY3MVPz2rWDwN6EUYI=,tag:paqTIe97dF83ExwAoQnSlQ==,type:str] murmur-superuser: ENC[AES256_GCM,data:yPiP2Vh6Zf9OSy0hlP0DsNykbhR2VvCLzA==,iv:+GEChmJtE2bnQ35uke4QXRDO3vY3MVPz2rWDwN6EUYI=,tag:paqTIe97dF83ExwAoQnSlQ==,type:str]
wg-home-private-key: ENC[AES256_GCM,data:UMNY28f8D4VN86s8RqhBbfCgBzLWOmAu1Id7RyIfp1Ta/BvgtfOz70Y3hvs=,iv:ph2O/wBwwThHnNQ5sHIc9ZOC6EXHM3fv4z3esTpJuj0=,tag:pROjuUte4+OZxPlhppceWA==,type:str]
wg-qbittorrent-private-key: ENC[AES256_GCM,data:PIoaHruI5+jnhXx7qaB16Xc7XV9xow2lhQy2/ILVhjwt5G2CN3CpfYQKep4=,iv:ZIoKe0FEwaJD850EUcnqQqC5Jg9FtqNin+1wdN6iQq8=,tag:0YveFfJlhgU0Z3kxrSMSQw==,type:str]
sops: sops:
kms: [] kms: []
gcp_kms: [] gcp_kms: []
azure_kv: [] azure_kv: []
hc_vault: [] hc_vault: []
age: [] age: []
lastmodified: "2022-03-18T15:51:55Z" lastmodified: "2022-03-18T20:26:13Z"
mac: ENC[AES256_GCM,data:hRzUVAjVSz0bbdvSU4QxMwAL57Wi9qBZLOnIeSOO7laVSC0JM0XlBau6t9hnLJRG4G8GPG32hAJ2E3lAFev6JLhEfVT7YurU8jVG5pazTUfWsKDn/Oo5sxsQG8oNAkzAYpkd7VqBl/l25g4JPeDtOpTO5FdktKfXqG886DKJER8=,iv:H1i3pwyTGMAH7xy6uIA2Cz/V9ZtHxqoBiAidLiQ8zNc=,tag:RzqzKNUQGhZv7Rzkc30ebg==,type:str] mac: ENC[AES256_GCM,data:QZeMxc5+TiIVWO3knYrjFbOHyP9QwtjLvjUAhtJf7J9mcFY04EB2AYTrObd2IzZEekAxuQ0JoPPUpbBqDlccTMgCGgSDrmfAqbWnO0wS8RRkNw7odSFj54wSBitdlH8BXUXakNedrlcpvl4x9P7WI9VrOCehs8DWvPoTYJTLU9I=,iv:lNOYNsc+tWbT7KQF/yw4LMqWsYYJtd/zGGqr3WJSXuk=,tag:O30+et2EQ0AWihKu8wuAnw==,type:str]
pgp: pgp:
- created_at: "2022-03-03T09:13:41Z" - created_at: "2022-03-03T09:13:41Z"
enc: | enc: |

Binary file not shown.

View file

@ -0,0 +1,6 @@
{
sbruder.qbittorrent = {
enable = true;
fqdn = "torrent.okarin.sbruder.de";
};
}

View file

@ -4,6 +4,7 @@ let
services = { services = {
"media" = config.sops.secrets.media-proxy-auth.path; "media" = config.sops.secrets.media-proxy-auth.path;
"torrent" = config.sops.secrets.torrent-proxy-auth.path; "torrent" = config.sops.secrets.torrent-proxy-auth.path;
"torrent.okarin" = config.sops.secrets.torrent-proxy-auth.path;
}; };
in in
{ {

View file

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name nginx: Better directory index // @name nginx: Better directory index
// @include http://localhost:8888/torrent/download/* // @include http://localhost:8888/torrent*/download/*
// @include https://ci.sbruder.de/nix-store/* // @include https://ci.sbruder.de/nix-store/*
// ==/UserScript== // ==/UserScript==