forked from eshtek/hexos-app-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplex.json
More file actions
117 lines (117 loc) · 3.44 KB
/
Copy pathplex.json
File metadata and controls
117 lines (117 loc) · 3.44 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"version": 4,
"script": {
"version": "1.1.0",
"changeLog": "Upgraded to V4 install script format"
},
"installation_questions": [
{
"question": "Claim Token (Optional)",
"description": "The claim token is used to automatically login to Plex. You can obtain a claim token to login your server to your Plex account by visiting https://www.plex.tv/claim.",
"placeholder": "claim-xxxxxxxxxxxxxxxxxxxxx",
"type": "text",
"key": "plex_claim_token",
"required": false,
"default": ""
},
{
"question": "Do you have Plex Pass?",
"description": "Plex Pass is required to unlock certain features.",
"type": "select",
"key": "image_selector",
"required": true,
"options": [
{
"text": "No, I don't have Plex Pass",
"value": "image"
},
{
"text": "Yes, I have Plex Pass",
"value": "plex_pass_image"
}
],
"default": "image"
}
],
"requirements": {
"locations": ["ApplicationsPerformance", "ApplicationsCapacity", "Media", "Photos", "Music", "Movies", "Shows", "Videos"],
"specifications": ["2CORE", "200MB"],
"permissions": ["READ_WRITE_LOCATIONS"],
"ports": [32400]
},
"ensure_directories_exists": [
{
"path": "$LOCATION(ApplicationsPerformance)",
"network_share": true
},
{
"path": "$LOCATION(ApplicationsCapacity)",
"network_share": true
},
{
"path": "$LOCATION(Media)",
"network_share": true
},
{
"path": "$LOCATION(Photos)",
"network_share": true
},
{
"path": "$LOCATION(Music)",
"network_share": true
},
{
"path": "$LOCATION(Movies)",
"network_share": true
},
{
"path": "$LOCATION(Shows)",
"network_share": true
},
{
"path": "$LOCATION(Videos)",
"network_share": true
},
{ "path": "$LOCATION(ApplicationsPerformance)/plex/data", "owner": { "user": "apps" }, "snapshot": { "id": "data" } },
{ "path": "$LOCATION(ApplicationsPerformance)/plex/config", "owner": { "user": "apps" }, "snapshot": { "id": "config" } },
{ "path": "$LOCATION(ApplicationsCapacity)/plex/logs" },
{ "path": "$LOCATION(ApplicationsPerformance)/plex/transcode" }
],
"app_values": {
"plex": {
"claim_token": "$QUESTION(plex_claim_token)",
"image_selector": "$QUESTION(image_selector)",
"additional_envs": [
{
"name": "ADVERTISE_IP",
"value": "http://$SERVER_LAN_IP:32400"
}
]
},
"run_as": {
"user": 568,
"group": 568
},
"storage": {
"data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/plex/data)",
"config": "$HOST_PATH($LOCATION(ApplicationsPerformance)/plex/config)",
"logs": "$HOST_PATH($LOCATION(ApplicationsCapacity)/plex/logs)",
"transcode": "$HOST_PATH($LOCATION(ApplicationsPerformance)/plex/transcode)",
"additional_storage": [
"$MOUNTED_HOST_PATH($LOCATION(Media), /media)",
"$MOUNTED_HOST_PATH($LOCATION(Photos), /photos)",
"$MOUNTED_HOST_PATH($LOCATION(Music), /music)",
"$MOUNTED_HOST_PATH($LOCATION(Movies), /movies)",
"$MOUNTED_HOST_PATH($LOCATION(Shows), /shows)",
"$MOUNTED_HOST_PATH($LOCATION(Videos), /videos)"
]
},
"resources": {
"limits": {
"cpus": 2,
"memory": "$MEMORY(10%, 2048)"
},
"gpus": "$GPU_CONFIG()"
}
}
}