setup autobrr

This commit is contained in:
Jana Dönszelmann 2026-01-06 00:18:18 +01:00
parent bfab24fbe4
commit b0158e96c8
No known key found for this signature in database
4 changed files with 44 additions and 8 deletions

View file

@ -0,0 +1,35 @@
{ config, secrets, ... }:
{
sops.secrets.autobrr = {
sopsFile = "${secrets}/autobrr.yaml";
key = "key";
format = "yaml";
};
services.nginx = {
virtualHosts."autobrr.donsz.nl" = {
forceSSL = true;
http2 = true;
enableACME = true;
locations."/" = {
proxyPass = "http://${config.services.autobrr.settings.host}:${toString config.services.autobrr.settings.port}";
};
};
};
services.oauth2-proxy.nginx.virtualHosts."autobrr.donsz.nl" = {
allowed_groups = [ "torrent" ];
};
services.autobrr = {
enable = true;
settings = {
logLevel = "DEBUG";
checkForUpdates = false;
host = "[::1]";
port = 11012;
};
secretFile = config.sops.secrets.autobrr.path;
};
}