h
This commit is contained in:
parent
67cc651c47
commit
de6e422647
1 changed files with 9 additions and 9 deletions
|
|
@ -36,7 +36,7 @@
|
|||
environment.systemPackages =
|
||||
[ ]
|
||||
++ (
|
||||
if config.server.jellyfin.enable then
|
||||
if config.server.media.jellyfin.enable then
|
||||
[
|
||||
pkgs.jellyfin
|
||||
pkgs.jellyfin-web
|
||||
|
|
@ -46,30 +46,30 @@
|
|||
[ ]
|
||||
);
|
||||
services = {
|
||||
jellyfin = lib.mkIf config.server.jellyfin.enable {
|
||||
jellyfin = lib.mkIf config.server.media.jellyfin.enable {
|
||||
enable = true;
|
||||
|
||||
};
|
||||
seerr = lib.mkIf config.server.jellyseer.enable {
|
||||
seerr = lib.mkIf config.server.media.jellyseer.enable {
|
||||
enable = true;
|
||||
};
|
||||
nginx.virtualHosts = {
|
||||
"${config.server.jellyfin.subdomain}.${config.networking.domain}" =
|
||||
lib.mkIf config.server.jellyfin.public
|
||||
"${config.server.media.jellyfin.subdomain}.${config.networking.domain}" =
|
||||
lib.mkIf config.server.media.jellyfin.public
|
||||
{
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${config.server.jellyfin.port}";
|
||||
proxyPass = "http://127.0.0.1:${config.server.media.jellyfin.port}";
|
||||
};
|
||||
};
|
||||
"${config.server.jellyseer.subdomain}.${config.networking.domain}" =
|
||||
lib.mkIf config.server.jellyfin.public
|
||||
"${config.server.media.jellyseer.subdomain}.${config.networking.domain}" =
|
||||
lib.mkIf config.server.media.jellyseer.public
|
||||
{
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${config.server.jellyseer.port}";
|
||||
proxyPass = "http://127.0.0.1:${config.server.media.jellyseer.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue