add shoko
This commit is contained in:
parent
f5888eeea8
commit
6b00bd1d4b
@ -41,6 +41,9 @@ let
|
|||||||
kavita.ataraxiadev.com:8080 {
|
kavita.ataraxiadev.com:8080 {
|
||||||
reverse_proxy kavita:5000
|
reverse_proxy kavita:5000
|
||||||
}
|
}
|
||||||
|
shoko.ataraxiadev.com:8080 {
|
||||||
|
reverse_proxy shokoserver:8111
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers.media-caddy = {
|
virtualisation.oci-containers.containers.media-caddy = {
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
with config.virtualisation.oci-containers; {
|
with config.virtualisation.oci-containers; {
|
||||||
imports = [
|
imports = [
|
||||||
|
./bazarr.nix
|
||||||
./botdarr.nix
|
./botdarr.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
|
./jellyfin.nix
|
||||||
|
./kavita.nix
|
||||||
|
./lidarr.nix
|
||||||
|
./nzbhydra2.nix
|
||||||
|
./organizr.nix
|
||||||
./prowlarr.nix
|
./prowlarr.nix
|
||||||
./qbittorrent.nix
|
./qbittorrent.nix
|
||||||
./jellyfin.nix
|
|
||||||
./radarr.nix
|
./radarr.nix
|
||||||
./lidarr.nix
|
./shoko.nix
|
||||||
./sonarr.nix
|
./sonarr.nix
|
||||||
./organizr.nix
|
|
||||||
./bazarr.nix
|
|
||||||
./nzbhydra2.nix
|
|
||||||
./kavita.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
secrets.xray-config = {
|
secrets.xray-config = {
|
||||||
@ -37,21 +38,22 @@ with config.virtualisation.oci-containers; {
|
|||||||
systemd.services.create-media-network = {
|
systemd.services.create-media-network = {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
wantedBy = [
|
wantedBy = [
|
||||||
|
"${backend}-bazarr.service"
|
||||||
"${backend}-botdarr-matrix.service"
|
"${backend}-botdarr-matrix.service"
|
||||||
"${backend}-botdarr-telegram.service"
|
"${backend}-botdarr-telegram.service"
|
||||||
"${backend}-jellyfin.service"
|
"${backend}-jellyfin.service"
|
||||||
"${backend}-radarr.service"
|
|
||||||
"${backend}-media-caddy.service"
|
|
||||||
"${backend}-qbittorrent.service"
|
|
||||||
"${backend}-prowlarr.service"
|
|
||||||
"${backend}-xray.service"
|
|
||||||
"${backend}-sonarr-tv.service"
|
|
||||||
"${backend}-sonarr-anime.service"
|
|
||||||
"${backend}-organizr.service"
|
|
||||||
"${backend}-lidarr.service"
|
|
||||||
"${backend}-bazarr.service"
|
|
||||||
"${backend}-nzbhydra2.service"
|
|
||||||
"${backend}-kavita.service"
|
"${backend}-kavita.service"
|
||||||
|
"${backend}-lidarr.service"
|
||||||
|
"${backend}-media-caddy.service"
|
||||||
|
"${backend}-nzbhydra2.service"
|
||||||
|
"${backend}-organizr.service"
|
||||||
|
"${backend}-prowlarr.service"
|
||||||
|
"${backend}-qbittorrent.service"
|
||||||
|
"${backend}-radarr.service"
|
||||||
|
"${backend}-shokoserver.service"
|
||||||
|
"${backend}-sonarr-anime.service"
|
||||||
|
"${backend}-sonarr-tv.service"
|
||||||
|
"${backend}-xray.service"
|
||||||
];
|
];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.docker}/bin/docker network inspect media || \
|
${pkgs.docker}/bin/docker network inspect media || \
|
||||||
|
19
profiles/servers/media-stack/shoko.nix
Normal file
19
profiles/servers/media-stack/shoko.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
virtualisation.oci-containers.containers.shokoserver = {
|
||||||
|
autoStart = true;
|
||||||
|
environment = {
|
||||||
|
PUID = "1019";
|
||||||
|
PGID = "1005";
|
||||||
|
TZ = "Europe/Moscow";
|
||||||
|
};
|
||||||
|
extraOptions = [
|
||||||
|
"--network=media"
|
||||||
|
];
|
||||||
|
image = "shokoanime/server:v4.1.1";
|
||||||
|
volumes = [
|
||||||
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
|
"/media/configs/shokoserver/config:/home/shoko/.shoko"
|
||||||
|
"/media/data:/data"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -32,6 +32,7 @@
|
|||||||
"bazarr.ataraxiadev.com"
|
"bazarr.ataraxiadev.com"
|
||||||
"nzbhydra.ataraxiadev.com"
|
"nzbhydra.ataraxiadev.com"
|
||||||
"kavita.ataraxiadev.com"
|
"kavita.ataraxiadev.com"
|
||||||
|
"shoko.ataraxiadev.com"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -117,7 +118,16 @@
|
|||||||
}];
|
}];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://matrix.pve:81";
|
proxyPass = "http://matrix.pve:81";
|
||||||
} // proxySettings;
|
extraConfig = ''
|
||||||
|
proxy_hide_header Content-Security-Policy;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Server $host;
|
||||||
|
'';
|
||||||
|
};
|
||||||
} // default;
|
} // default;
|
||||||
"matrix:8448" = {
|
"matrix:8448" = {
|
||||||
serverAliases = [ "matrix.ataraxiadev.com" ];
|
serverAliases = [ "matrix.ataraxiadev.com" ];
|
||||||
@ -183,6 +193,7 @@
|
|||||||
"bazarr.ataraxiadev.com"
|
"bazarr.ataraxiadev.com"
|
||||||
"nzbhydra.ataraxiadev.com"
|
"nzbhydra.ataraxiadev.com"
|
||||||
"kavita.ataraxiadev.com"
|
"kavita.ataraxiadev.com"
|
||||||
|
"shoko.ataraxiadev.com"
|
||||||
];
|
];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8100";
|
proxyPass = "http://localhost:8100";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user