feat: installed bazarr, radarr, and sonarr
This commit is contained in:
parent
4d52c58f79
commit
f9fe74cc8a
11 changed files with 201 additions and 3 deletions
28
modules/nixos-modules/server/bazarr/proxy.nix
Normal file
28
modules/nixos-modules/server/bazarr/proxy.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.services.bazarr = {
|
||||
subdomain = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Subdomain for reverse proxy. If null, service will be local only.";
|
||||
};
|
||||
extraSubdomains = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [];
|
||||
description = "Extra subdomains for reverse proxy.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.services.bazarr.enable && config.services.bazarr.subdomain != null) {
|
||||
host.reverse_proxy.subdomains.bazarr = {
|
||||
subdomain = config.services.bazarr.subdomain;
|
||||
extraSubdomains = config.services.bazarr.extraSubdomains;
|
||||
target = "http://127.0.0.1:6767";
|
||||
websockets.enable = true;
|
||||
forwardHeaders.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue