This repository was archived by the owner on Mar 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig-sample-channels.php
50 lines (44 loc) · 2.62 KB
/
config-sample-channels.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
// Destination PMS Owner
$token = ""; //MyPlex auth token
//Can be found in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml
$username = ""; //username of the myplex user owning the PMS server that requests are proxied to
//Can be found in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml
// RTT/DummyPMS Server
$lbip = ""; //REMOTEIP:port of RTT
$lbname = ""; //Friendly name of the Dummy PMS server having the same ip as RTT
// Destination PMS
$destserver = ""; //IP:port of the PMS server that requests are proxied to
//$destserver = "localhost:32400" //If running RTT and PMS on the same server (use lan address if same lan)
$destserverre = $destserver; //REMOTE IP:port of the PMS server that requests are proxied to
//$destserverre = "REMOTEIP:REMOTEPORT" //Only use this if using lan ip for $destserver
//Get the values below from the /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml
$destname = ""; //Friendly name of the PMS server that requests are proxied to
$destuuid = "ProcessedMachineIdentifier";
// Proxied Users
$lbuuidkvp = array(
"PlexOnlineMail1" => "ProcessedMachineIdentifier1",
"PlexOnlineMail2" => "ProcessedMachineIdentifier2",
"PlexOnlineMail3" => "ProcessedMachineIdentifier3",
$username => $destuuid);
//Get the values below from the /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml
//Server requests are being proxied to
// Config
$log = "/path/to/logs/changeup.log";
$loggingenabled = TRUE;
$loghistorylength = 5;
$maxlogsize = 1* 1024 * 1024; //1MB
// RTT Client Mode
// RTT Client mode will allow proxied media playback
$swapidentity = TRUE; //Should the identity of the user be swapped with ther owner. Disable for general proxy
$namedusersonly = TRUE; //Only allow users within the $lbuuidkvp array through.
//When swapidentity is FALSE, disable to let PMS manage permissions.
//When $enableanonymousaccess is TRUE, enable to limit user access.
$blocksections = TRUE; //DO NOT allow access to sections. (TRUE to disable client mode || FALSE to enable client mode)
$streamsize=10485760; //5MB. RTT Client streaming size. Not yet documented
$clientstreaming=TRUE; //Used with Client mode. Will stream media instead of redirecting.
// DANGER: redirecting is dangerous when used with swapidentity. This WILL 100% expose the super user account
// DANGER ZONE
$enableanonymousaccess=FALSE; //DANGER! DANGER! this will essentially open up the proxied server to ANY and EVERY myPlex user that knows the ip.
//Enable only for debugging or if you know what you are doing.
?>