init of prowlarr
This commit is contained in:
parent
573459a236
commit
7116d4172c
2 changed files with 44 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
let
|
let
|
||||||
cfg = import ./vars.nix;
|
cfg = import ./vars.nix;
|
||||||
bazarr_port = cfg.arrstack.bazarr.port;
|
bazarr_port = cfg.arrstack.bazarr.port;
|
||||||
|
prowlarr_port = cfg.arrstack.prowlarr.port;
|
||||||
radarr_port = cfg.arrstack.radarr.port;
|
radarr_port = cfg.arrstack.radarr.port;
|
||||||
sonarr_port = cfg.arrstack.sonarr.port;
|
sonarr_port = cfg.arrstack.sonarr.port;
|
||||||
sabnzbd_port = cfg.arrstack.sabnzbd.port;
|
sabnzbd_port = cfg.arrstack.sabnzbd.port;
|
||||||
|
|
@ -17,7 +18,7 @@ in
|
||||||
TZ = "Europe/Berlin";
|
TZ = "Europe/Berlin";
|
||||||
};
|
};
|
||||||
ports = [
|
ports = [
|
||||||
"${bazarr_port}:6767"
|
"${bazarr_port}:${bazarr_port}"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/bazarr:/config"
|
"/var/lib/bazarr:/config"
|
||||||
|
|
@ -28,13 +29,27 @@ in
|
||||||
extraOptions = cfg.podman.extraOptions;
|
extraOptions = cfg.podman.extraOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.oci-containers.containers.prowlarr = {
|
||||||
|
image = "lscr.io/linuxserver/prowlarr:latest";
|
||||||
|
environment = {
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
};
|
||||||
|
ports = [
|
||||||
|
"${prowlarr_port}:${prowlarr_port}"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"/var/lib/prowlarr:/config"
|
||||||
|
];
|
||||||
|
extraOptions = cfg.podman.extraOptions;
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.radarr = {
|
virtualisation.oci-containers.containers.radarr = {
|
||||||
image = "lscr.io/linuxserver/radarr:latest";
|
image = "lscr.io/linuxserver/radarr:latest";
|
||||||
environment = {
|
environment = {
|
||||||
TZ = "Europe/Berlin";
|
TZ = "Europe/Berlin";
|
||||||
};
|
};
|
||||||
ports = [
|
ports = [
|
||||||
"${radarr_port}:7878"
|
"${radarr_port}:${radarr_port}"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/radarr:/config"
|
"/var/lib/radarr:/config"
|
||||||
|
|
@ -50,7 +65,7 @@ in
|
||||||
TZ = "Europe/Berlin";
|
TZ = "Europe/Berlin";
|
||||||
};
|
};
|
||||||
ports = [
|
ports = [
|
||||||
"${sonarr_port}:8989"
|
"${sonarr_port}:${sonarr_port}"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/sonarr:/config"
|
"/var/lib/sonarr:/config"
|
||||||
|
|
@ -102,6 +117,29 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"prowlarr.${domain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${outpost_port}";
|
||||||
|
extraConfig = ''
|
||||||
|
#proxy_set_header Host $proxy_host;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $http_connection;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
access_log /var/log/nginx/prowlarr.${domain}_access.log;
|
||||||
|
error_log /var/log/nginx/prowlarr.${domain}_error.log;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
"radarr.${domain}" = {
|
"radarr.${domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
bazarr = {
|
bazarr = {
|
||||||
port = "6767";
|
port = "6767";
|
||||||
};
|
};
|
||||||
|
prowlarr = {
|
||||||
|
port = "9696";
|
||||||
|
};
|
||||||
radarr = {
|
radarr = {
|
||||||
port = "7878";
|
port = "7878";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue