setup autobrr
This commit is contained in:
parent
bfab24fbe4
commit
b0158e96c8
4 changed files with 44 additions and 8 deletions
35
fili/services/media/autobrr.nix
Normal file
35
fili/services/media/autobrr.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue