remove some unused services/refactor
This commit is contained in:
parent
7297d48f13
commit
253cdf8ede
17 changed files with 8 additions and 271 deletions
43
nixos/viridian/multimedia/prowlarr/default.nix
Normal file
43
nixos/viridian/multimedia/prowlarr/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{...}: let
|
||||
port = "9696";
|
||||
in {
|
||||
virtualisation.oci-containers.containers = {
|
||||
# Indexer manager/proxy built on the popular arr .net/reactjs base stack to integrate with your various PVR apps.
|
||||
prowlarr = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/hotio/prowlarr:release-1.21.2.4649";
|
||||
ports = [
|
||||
"${port}:9696/tcp" # WebUI
|
||||
];
|
||||
volumes = [
|
||||
# Container data
|
||||
"/srv/containers/prowlarr:/config:rw"
|
||||
];
|
||||
environment = {
|
||||
PUID = "1000";
|
||||
PGID = "100";
|
||||
};
|
||||
extraOptions = [
|
||||
"--network=media-stack"
|
||||
];
|
||||
};
|
||||
};
|
||||
services.traefik.dynamicConfigOptions.http.routers = {
|
||||
prowlarr = {
|
||||
rule = "Host(`prowlarr.kanto.dev`)";
|
||||
entryPoints = [
|
||||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"internal"
|
||||
];
|
||||
service = "prowlarr";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http.services = {
|
||||
prowlarr.loadBalancer.servers = [
|
||||
{url = "http://127.0.0.1:${port}";}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue