Skip to content

Commit

Permalink
feat: try to make plex remotely accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
meatcar committed Feb 29, 2024
1 parent 1240a01 commit b06684f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions nixos/systems/cube/modules/docker-plex.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,29 @@ in

virtualisation.oci-containers.containers.plex = {
image = "plexinc/pms-docker";
ports = [ "${port}:32400" ];
hostname = config.networking.fqdn;
ports = [
"${port}:32400/tcp"
"8324:8324/tcp"
"32469:32469/tcp"
"1900:1900/udp"
"32410:32410/udp"
"32412:32412/udp"
"32413:32413/udp"
"32414:32414/udp"
];
volumes = [
"${config.mine.persistPath}/plex:/config"
"/data:/data"
"/data/Multimedia:/data/Multimedia"
];
extraOptions = [
"--network=host"
# "--network=host"
"--device=/dev/dri:/dev/dri" # for transcoding
];
environment = {
PUID = toString config.ids.uids.${config.mine.storageUser};
PGID = toString config.ids.gids.${config.mine.storageGroup};
ADVERTISE_IP = "https://plex.${config.networking.fqdn}:443/";
};
};

Expand Down

0 comments on commit b06684f

Please sign in to comment.