2023-04-29 20:33:25 +02:00
|
|
|
{ ... }:
|
|
|
|
|
let
|
|
|
|
|
cfg = import ./vars.nix;
|
2024-05-06 17:27:36 +02:00
|
|
|
autobrr_port = cfg.arrstack.autobrr.port;
|
2023-05-25 13:54:58 +02:00
|
|
|
bazarr_port = cfg.arrstack.bazarr.port;
|
2024-05-06 17:27:36 +02:00
|
|
|
jellyseerr_port = cfg.arrstack.jellyseerr.port;
|
|
|
|
|
lidarr_port = cfg.arrstack.lidarr.port;
|
2023-06-30 09:16:15 +02:00
|
|
|
prowlarr_port = cfg.arrstack.prowlarr.port;
|
2023-04-29 20:33:25 +02:00
|
|
|
radarr_port = cfg.arrstack.radarr.port;
|
|
|
|
|
sonarr_port = cfg.arrstack.sonarr.port;
|
2024-05-06 17:27:36 +02:00
|
|
|
tdarr_webport = cfg.arrstack.tdarr.webport;
|
|
|
|
|
tdarr_serverport = cfg.arrstack.tdarr.serverport;
|
2023-07-07 16:01:39 +02:00
|
|
|
whisparr_port = cfg.arrstack.whisparr.port;
|
2023-04-29 20:33:25 +02:00
|
|
|
sabnzbd_port = cfg.arrstack.sabnzbd.port;
|
2023-06-28 08:45:26 +02:00
|
|
|
outpost_port = cfg.authentik.outpostPort;
|
2023-04-29 20:33:25 +02:00
|
|
|
domain = "mc-fucker.cool";
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
|
2024-05-06 17:27:36 +02:00
|
|
|
users.groups.arr = {
|
|
|
|
|
gid = 1337;
|
|
|
|
|
};
|
|
|
|
|
users.users = {
|
|
|
|
|
arr = {
|
|
|
|
|
isSystemUser = true;
|
|
|
|
|
group = "arr";
|
|
|
|
|
uid = 1337;
|
|
|
|
|
};
|
|
|
|
|
mc-fucker.extraGroups = [ "arr" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-07 16:01:39 +02:00
|
|
|
networking.firewall.interfaces.podman0.allowedTCPPorts = [ 12421 28917 ];
|
2024-05-06 17:27:36 +02:00
|
|
|
networking.firewall.interfaces.podman0.allowedUDPPorts = [ 53 ];
|
2023-07-07 16:01:39 +02:00
|
|
|
|
2023-04-29 20:33:25 +02:00
|
|
|
#container config
|
2024-05-06 17:27:36 +02:00
|
|
|
|
|
|
|
|
#virtualisation.oci-containers.containers.autobrr = {
|
|
|
|
|
# image = "ghcr.io/autobrr/autobrr";
|
|
|
|
|
# environment = {
|
|
|
|
|
# TZ = "Europe/Berlin";
|
|
|
|
|
# };
|
|
|
|
|
# ports = [
|
|
|
|
|
# "${autobrr_port}:${autobrr_port}"
|
|
|
|
|
# ];
|
|
|
|
|
# volumes = [
|
|
|
|
|
# "/var/lib/autobrr:/config"
|
|
|
|
|
# ];
|
|
|
|
|
# extraOptions = cfg.podman.extraOptions;
|
|
|
|
|
#};
|
|
|
|
|
|
2023-05-25 13:54:58 +02:00
|
|
|
virtualisation.oci-containers.containers.bazarr = {
|
|
|
|
|
image = "lscr.io/linuxserver/bazarr:latest";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
2024-05-06 17:27:36 +02:00
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
2023-05-25 13:54:58 +02:00
|
|
|
};
|
|
|
|
|
ports = [
|
2023-06-30 09:16:15 +02:00
|
|
|
"${bazarr_port}:${bazarr_port}"
|
2023-05-25 13:54:58 +02:00
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/bazarr:/config"
|
2024-05-06 17:27:36 +02:00
|
|
|
"/mnt/mergerfs/media:/data"
|
|
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
|
|
|
|
autoStart = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#virtualisation.oci-containers.containers.crossseed = {
|
|
|
|
|
# image = "docker.io/crossseed/cross-seed";
|
|
|
|
|
# environment = {
|
|
|
|
|
# TZ = "Europe/Berlin";
|
|
|
|
|
# PUID = "1337";
|
|
|
|
|
# PGID = "1337";
|
|
|
|
|
# };
|
|
|
|
|
# ports = [
|
|
|
|
|
# "${radarr_port}:${radarr_port}"
|
|
|
|
|
# ];
|
|
|
|
|
# volumes = [
|
|
|
|
|
# "/var/lib/radarr:/config"
|
|
|
|
|
# "/mnt/mergerfs/media:/data"
|
|
|
|
|
# "/mnt/box/files:/data/seedbox"
|
|
|
|
|
# ];
|
|
|
|
|
# extraOptions = cfg.podman.extraOptions;
|
|
|
|
|
#};
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.jellyseerr = {
|
|
|
|
|
image = "docker.io/fallenbagel/jellyseerr";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"${jellyseerr_port}:${jellyseerr_port}"
|
|
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/jellyseerr:/app/config"
|
|
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.lidarrtest = {
|
|
|
|
|
image = "docker.io/youegraillot/lidarr-on-steroids";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
|
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"10101:8686"
|
|
|
|
|
"10100:6595"
|
|
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/lidarrtest/lidarr:/config"
|
|
|
|
|
"/var/lib/lidarrtest/deemix:/config_deemix"
|
|
|
|
|
"/mnt/tmp/deemix:/downloads"
|
|
|
|
|
#"/mnt/mergerfs/media/music/Interpreten:/music"
|
|
|
|
|
#"/mnt/mergerfs/media:/data"
|
|
|
|
|
#"/mnt/box/files:/data/seedbox"
|
|
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
|
|
|
|
autoStart = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.lidarr = {
|
|
|
|
|
image = "lscr.io/linuxserver/lidarr:latest";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
|
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"${lidarr_port}:${lidarr_port}"
|
|
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/lidarr:/config"
|
|
|
|
|
"/var/lib/lidarr-extended/custom-cont-init.d:/custom-cont-init.d"
|
|
|
|
|
"/var/lib/lidarr-extended/custom-services.d:/custom-services.d"
|
|
|
|
|
"/mnt/mergerfs/media:/data"
|
|
|
|
|
#"/mnt/box/files:/mnt/seedbox"
|
|
|
|
|
"/mnt/ultracc/downloads:/mnt/ultracc"
|
2023-05-25 13:54:58 +02:00
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
2024-05-06 17:27:36 +02:00
|
|
|
autoStart = false;
|
2023-05-25 13:54:58 +02:00
|
|
|
};
|
|
|
|
|
|
2023-06-30 09:16:15 +02:00
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-06 17:27:36 +02:00
|
|
|
virtualisation.oci-containers.containers.qbittorrent = {
|
|
|
|
|
image = "docker.io/binhex/arch-qbittorrentvpn";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
|
|
|
|
VPN_ENABLED = "yes";
|
|
|
|
|
VPN_CLIENT = "wireguard";
|
|
|
|
|
VPN_PROV = "custom";
|
|
|
|
|
LAN_NETWORK = "192.168.178.0/24";
|
|
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"6881:6881"
|
|
|
|
|
"6881:6881/udp"
|
|
|
|
|
"8080:8080"
|
|
|
|
|
#"8118:8118"
|
|
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/qbittorrent:/config"
|
|
|
|
|
"/mnt/mergerfs/media/qbittorrent:/data/qbittorrent"
|
|
|
|
|
];
|
|
|
|
|
#extraOptions = cfg.podman.extraOptions ++ [ "--cap-add=NET_ADMIN,NET_RAW" "--device=/dev/net/tun" ];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions ++ [ ''--sysctl="net.ipv4.conf.all.src_valid_mark=1"'' "--privileged=true" "--ip=10.88.13.37" ];
|
|
|
|
|
autoStart = false;
|
|
|
|
|
};
|
|
|
|
|
|
2023-04-29 20:33:25 +02:00
|
|
|
virtualisation.oci-containers.containers.radarr = {
|
|
|
|
|
image = "lscr.io/linuxserver/radarr:latest";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
2024-05-06 17:27:36 +02:00
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
ports = [
|
2023-06-30 09:16:15 +02:00
|
|
|
"${radarr_port}:${radarr_port}"
|
2023-04-29 20:33:25 +02:00
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/radarr:/config"
|
2024-05-06 17:27:36 +02:00
|
|
|
"/mnt/mergerfs/media:/data"
|
|
|
|
|
#"/mnt/box/files:/mnt/seedbox"
|
|
|
|
|
"/mnt/ultracc/downloads:/mnt/ultracc"
|
2023-04-29 20:33:25 +02:00
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
2024-05-06 17:27:36 +02:00
|
|
|
autoStart = false;
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.sonarr = {
|
2024-05-06 17:27:36 +02:00
|
|
|
image = "lscr.io/linuxserver/sonarr:develop";
|
2023-04-29 20:33:25 +02:00
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
2024-05-06 17:27:36 +02:00
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
ports = [
|
2023-06-30 09:16:15 +02:00
|
|
|
"${sonarr_port}:${sonarr_port}"
|
2023-04-29 20:33:25 +02:00
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/sonarr:/config"
|
2024-05-06 17:27:36 +02:00
|
|
|
"/mnt/mergerfs/media:/data"
|
|
|
|
|
#"/mnt/box/files:/mnt/seedbox"
|
|
|
|
|
"/mnt/ultracc/downloads:/mnt/ultracc"
|
2023-04-29 20:33:25 +02:00
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
2024-05-06 17:27:36 +02:00
|
|
|
autoStart = false;
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.sabnzbd = {
|
|
|
|
|
image = "lscr.io/linuxserver/sabnzbd:latest";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
2024-05-06 17:27:36 +02:00
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"${sabnzbd_port}:8080"
|
|
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/sabnzbd:/config"
|
2024-05-06 17:27:36 +02:00
|
|
|
"/mnt/mergerfs/media/usenet:/data/usenet"
|
2024-08-27 23:42:09 +02:00
|
|
|
"/mnt/cache/sabnzbd:/cache"
|
2023-04-29 20:33:25 +02:00
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
2024-05-06 17:27:36 +02:00
|
|
|
autoStart = false;
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
|
2024-05-06 17:27:36 +02:00
|
|
|
#virtualisation.oci-containers.containers.tdarr = {
|
|
|
|
|
# image = "ghcr.io/haveagitgat/tdarr";
|
|
|
|
|
# environment = {
|
|
|
|
|
# TZ = "Europe/Berlin";
|
|
|
|
|
# PUID = "1337";
|
|
|
|
|
# PGID = "1337";
|
|
|
|
|
# serverIP = "0.0.0.0";
|
|
|
|
|
# webUIPort = tdarr_webport;
|
|
|
|
|
# serverPort = tdarr_serverport;
|
|
|
|
|
# internalNode = "true";
|
|
|
|
|
# inContainer = "true";
|
|
|
|
|
# };
|
|
|
|
|
# ports = [
|
|
|
|
|
# "${tdarr_webport}:${tdarr_webport}"
|
|
|
|
|
# "${tdarr_serverport}:${tdarr_serverport}"
|
|
|
|
|
# ];
|
|
|
|
|
# volumes = [
|
|
|
|
|
# "/var/lib/tdarr/server:/app/server"
|
|
|
|
|
# "/var/lib/tdarr/configs:/app/configs"
|
|
|
|
|
# "/var/lib/tdarr/logs:/app/logs"
|
|
|
|
|
# "/mnt/mergerfs/media:/data"
|
|
|
|
|
# ];
|
|
|
|
|
# extraOptions = cfg.podman.extraOptions ++ [ "--device=/dev/dri:/dev/dri" ];
|
|
|
|
|
#};
|
|
|
|
|
|
2023-07-07 16:01:39 +02:00
|
|
|
virtualisation.oci-containers.containers.whisparr = {
|
|
|
|
|
image = "cr.hotio.dev/hotio/whisparr";
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
2024-05-06 17:27:36 +02:00
|
|
|
PUID = "1337";
|
|
|
|
|
PGID = "1337";
|
2023-07-07 16:01:39 +02:00
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"${whisparr_port}:${whisparr_port}"
|
|
|
|
|
];
|
|
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/whisparr:/config"
|
2024-05-06 17:27:36 +02:00
|
|
|
"/mnt/mergerfs/media:/data"
|
|
|
|
|
#"/mnt/box/files:/mnt/seedbox"
|
|
|
|
|
"/mnt/ultracc/downloads:/mnt/ultracc"
|
2023-07-07 16:01:39 +02:00
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
2024-05-06 17:27:36 +02:00
|
|
|
autoStart = false;
|
2023-07-07 16:01:39 +02:00
|
|
|
};
|
|
|
|
|
|
2023-04-29 20:33:25 +02:00
|
|
|
#webserver config
|
|
|
|
|
imports = [ ./nginx.nix ];
|
|
|
|
|
|
|
|
|
|
services.nginx.virtualHosts = {
|
2023-05-25 13:54:58 +02:00
|
|
|
"bazarr.${domain}" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
2024-05-06 17:27:36 +02:00
|
|
|
locations =
|
|
|
|
|
let
|
|
|
|
|
common = ''
|
|
|
|
|
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;
|
|
|
|
|
'';
|
|
|
|
|
in
|
|
|
|
|
{
|
2023-05-25 13:54:58 +02:00
|
|
|
"/" = {
|
2023-06-28 08:45:26 +02:00
|
|
|
proxyPass = "http://127.0.0.1:${outpost_port}";
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
"/api" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${bazarr_port}";
|
|
|
|
|
extraConfig = common;
|
2023-05-25 13:54:58 +02:00
|
|
|
};
|
|
|
|
|
};
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/bazarr.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/bazarr.${domain}_error.log;
|
|
|
|
|
'';
|
2023-05-25 13:54:58 +02:00
|
|
|
};
|
|
|
|
|
|
2024-05-06 17:27:36 +02:00
|
|
|
"jellyseerr.${domain}" = {
|
2023-06-30 09:16:15 +02:00
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
|
|
|
|
locations = {
|
|
|
|
|
"/" = {
|
2024-05-06 17:27:36 +02:00
|
|
|
proxyPass = "http://127.0.0.1:${jellyseerr_port}";
|
2023-06-30 09:16:15 +02:00
|
|
|
extraConfig = ''
|
2024-05-06 17:27:36 +02:00
|
|
|
proxy_set_header Referer $http_referer;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Real-Port $remote_port;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host:$remote_port;
|
|
|
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
|
|
|
proxy_set_header X-Forwarded-Port $remote_port;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
|
|
|
|
2023-06-30 09:16:15 +02:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
|
proxy_redirect off;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/jellyseerr.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/jellyseerr.${domain}_error.log;
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"prowlarr.${domain}" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
|
|
|
|
locations =
|
|
|
|
|
let
|
|
|
|
|
common = ''
|
|
|
|
|
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;
|
|
|
|
|
'';
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
"/" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${outpost_port}";
|
|
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
"/api" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${prowlarr_port}";
|
|
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/prowlarr.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/prowlarr.${domain}_error.log;
|
|
|
|
|
'';
|
2023-06-30 09:16:15 +02:00
|
|
|
};
|
|
|
|
|
|
2023-04-29 20:33:25 +02:00
|
|
|
"radarr.${domain}" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
2024-05-06 17:27:36 +02:00
|
|
|
locations =
|
|
|
|
|
let
|
|
|
|
|
common = ''
|
|
|
|
|
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;
|
|
|
|
|
'';
|
|
|
|
|
in
|
|
|
|
|
{
|
2023-04-29 20:33:25 +02:00
|
|
|
"/" = {
|
2023-06-28 08:45:26 +02:00
|
|
|
proxyPass = "http://127.0.0.1:${outpost_port}";
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
"/api" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${radarr_port}";
|
|
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
"/signalr" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${radarr_port}";
|
|
|
|
|
extraConfig = common;
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
};
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/radarr.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/radarr.${domain}_error.log;
|
|
|
|
|
'';
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"sonarr.${domain}" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
2024-05-06 17:27:36 +02:00
|
|
|
locations =
|
|
|
|
|
let
|
|
|
|
|
common = ''
|
|
|
|
|
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;
|
|
|
|
|
'';
|
|
|
|
|
in
|
|
|
|
|
{
|
2023-04-29 20:33:25 +02:00
|
|
|
"/" = {
|
2023-06-28 08:45:26 +02:00
|
|
|
proxyPass = "http://127.0.0.1:${outpost_port}";
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
"/api" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${sonarr_port}";
|
|
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/sonarr.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/sonarr.${domain}_error.log;
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"sabnzbd.${domain}" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
|
|
|
|
locations =
|
|
|
|
|
let
|
|
|
|
|
common = ''
|
|
|
|
|
client_max_body_size 100m;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
'';
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
"/" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${outpost_port}";
|
|
|
|
|
extraConfig = common;
|
|
|
|
|
};
|
|
|
|
|
"/api" = {
|
|
|
|
|
proxyPass = "http://127.0.0.1:${sabnzbd_port}";
|
|
|
|
|
extraConfig = common;
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
};
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/sabnzbd.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/sabnzbd.${domain}_error.log;
|
|
|
|
|
'';
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
|
2023-07-07 16:01:39 +02:00
|
|
|
"whisparr.${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;
|
2023-04-29 20:33:25 +02:00
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-05-06 17:27:36 +02:00
|
|
|
extraConfig = ''
|
|
|
|
|
access_log /var/log/nginx/whisparr.${domain}_access.log;
|
|
|
|
|
error_log /var/log/nginx/whisparr.${domain}_error.log;
|
|
|
|
|
'';
|
2023-04-29 20:33:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
# vim: set et ts=2 sw=2 ai:
|