Add jellyseerr and fix DNS in containers
This commit is contained in:
parent
84e2cc3b80
commit
426a2d5814
5 changed files with 34 additions and 1 deletions
|
@ -23,12 +23,17 @@ https://*.m.myriation.xyz {
|
|||
|
||||
# Configure all service matchers
|
||||
@jellyfin host jellyfin.m.myriation.xyz
|
||||
@jellyseerr host jellyseerr.m.myriation.xyz
|
||||
|
||||
# Handle all services
|
||||
handle @jellyfin {
|
||||
reverse_proxy jellyfin.containers:8096
|
||||
}
|
||||
|
||||
handle @jellyseerr {
|
||||
reverse_proxy jellyseerr.containers:5055
|
||||
}
|
||||
|
||||
# Handle all unmatched requests as a 404
|
||||
handle {
|
||||
error "Not Found" 404
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
# Individual services
|
||||
./caddy
|
||||
./jellyfin
|
||||
./jellyseerr
|
||||
];
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
# Firewall on the host system is enough + this firewall seems to break networking
|
||||
networking.firewall.enable = false;
|
||||
networking.useHostResolvConf = true;
|
||||
};
|
||||
autoStart = true;
|
||||
|
||||
|
|
24
hosts/laptop-server/config/services/jellyseerr/default.nix
Normal file
24
hosts/laptop-server/config/services/jellyseerr/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
{
|
||||
containers.jellyseerr = {
|
||||
config = { pkgs, ... }: {
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
services.jellyseerr = {
|
||||
enable = true;
|
||||
package = pkgs.jellyseerr;
|
||||
};
|
||||
|
||||
# Firewall on the host system is enough + this firewall seems to break networking
|
||||
networking.firewall.enable = false;
|
||||
networking.useHostResolvConf = true;
|
||||
};
|
||||
autoStart = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
firewall.trustedInterfaces = [ "ve-jellyseerr" ];
|
||||
nat.internalInterfaces = [ "ve-jellyseerr" ];
|
||||
networkmanager.unmanaged = [ "interface-name:ve-jellyseerr" ];
|
||||
};
|
||||
}
|
|
@ -3,7 +3,9 @@ let
|
|||
services = {
|
||||
jellyfin = {
|
||||
hostByte = 2;
|
||||
ports = [];
|
||||
};
|
||||
jellyseerr = {
|
||||
hostByte = 3;
|
||||
};
|
||||
};
|
||||
in {
|
||||
|
|
Loading…
Reference in a new issue