added bazarr
This commit is contained in:
parent
ee051ad103
commit
23fbd0d2a7
2 changed files with 46 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
let
|
||||
cfg = import ./vars.nix;
|
||||
bazarr_port = cfg.arrstack.bazarr.port;
|
||||
radarr_port = cfg.arrstack.radarr.port;
|
||||
sonarr_port = cfg.arrstack.sonarr.port;
|
||||
sabnzbd_port = cfg.arrstack.sabnzbd.port;
|
||||
|
|
@ -9,6 +10,23 @@ in
|
|||
{
|
||||
|
||||
#container config
|
||||
virtualisation.oci-containers.containers.bazarr = {
|
||||
image = "lscr.io/linuxserver/bazarr:latest";
|
||||
environment = {
|
||||
TZ = "Europe/Berlin";
|
||||
};
|
||||
ports = [
|
||||
"${bazarr_port}:6767"
|
||||
];
|
||||
volumes = [
|
||||
"/var/lib/bazarr:/config"
|
||||
"/mnt/arrstack:/data"
|
||||
"/mnt/gdrive/movies:/data/media/movies"
|
||||
"/mnt/gdrive/Serien:/data/media/tv"
|
||||
];
|
||||
extraOptions = cfg.podman.extraOptions;
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.radarr = {
|
||||
image = "lscr.io/linuxserver/radarr:latest";
|
||||
environment = {
|
||||
|
|
@ -20,6 +38,7 @@ in
|
|||
volumes = [
|
||||
"/var/lib/radarr:/config"
|
||||
"/mnt/arrstack:/data"
|
||||
"/mnt/gdrive/movies:/data/media/movies"
|
||||
];
|
||||
extraOptions = cfg.podman.extraOptions;
|
||||
};
|
||||
|
|
@ -35,6 +54,7 @@ in
|
|||
volumes = [
|
||||
"/var/lib/sonarr:/config"
|
||||
"/mnt/arrstack:/data"
|
||||
"/mnt/gdrive/Serien:/data/media/tv"
|
||||
];
|
||||
extraOptions = cfg.podman.extraOptions;
|
||||
};
|
||||
|
|
@ -59,6 +79,28 @@ in
|
|||
imports = [ ./nginx.nix ];
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"bazarr.${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://127.0.0.1:${bazarr_port}";
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_redirect off;
|
||||
access_log /var/log/nginx/bazarr.${domain}_access.log;
|
||||
error_log /var/log/nginx/bazarr.${domain}_error.log;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
"radarr.${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
@ -112,6 +154,7 @@ in
|
|||
"/" = {
|
||||
proxyPass = "http://127.0.0.1:${sabnzbd_port}";
|
||||
extraConfig = ''
|
||||
client_max_body_size 100m;
|
||||
# proxy_set_header Host $proxy_host;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Host $host;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
|
||||
arrstack = {
|
||||
bazarr = {
|
||||
port = "6767";
|
||||
};
|
||||
radarr = {
|
||||
port = "7878";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue