Media Manager
A modern selfhosted media management system for your media library
- 1Copy the script below
- 2In HexOS, open Apps, find Media Manager and choose Custom Install
- 3Paste, then press Install — full guide with screenshots
1{
12 "version": 5,
23 "script": {
4 "version": "0.1.0",
5 "changeLog": "Auto-generated draft from TrueNAS media-manager 1.2.30"
6 },
37 "installation_questions": [
8 {
9 "question": "Auth token secret",
10 "type": "password",
11 "key": "auth_token_secret",
12 "required": true
13 }
14 ],
15 "requirements": {
416 "locations": ["ApplicationsPerformance", "Media"],
517 "specifications": ["2CORE"],
618 "permissions": ["READ_WRITE_LOCATIONS"],
719 "ports": [30307]
20 },
821 "ensure_directories_exists": [
22 {"path": "$LOCATION(ApplicationsPerformance)"},
23 {"path": "$LOCATION(ApplicationsPerformance)/media-manager"},
24 {"path": "$LOCATION(Media)", "network_share": true},
25 {
26 "path": "$LOCATION(ApplicationsPerformance)/media-manager/data",
27 "owner": {"user": "apps"},
28 "snapshot": {"id": "data"}
29 },
30 {
31 "path": "$LOCATION(ApplicationsPerformance)/media-manager/images",
32 "owner": {"user": "apps"},
33 "snapshot": {"id": "images"}
34 },
35 {
36 "path": "$LOCATION(ApplicationsPerformance)/media-manager/config",
37 "owner": {"user": "apps"},
38 "snapshot": {"id": "config"}
39 },
40 {
41 "path": "$LOCATION(ApplicationsPerformance)/media-manager/postgres_data",
42 "owner": {"user": "netdata", "group": "docker"},
43 "snapshot": {"id": "postgres_data"}
44 }
45 ],
46 "app_values": {
47 "media_manager": {
948 "db_password": "$RANDOM_STRING(16)",
1049 "frontend_url": "http://$SERVER_LAN_IP:30307",
1150 "auth_token_secret": "$QUESTION(auth_token_secret)"
51 },
52 "storage": {
1253 "data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/media-manager/data)",
1354 "images": "$HOST_PATH($LOCATION(ApplicationsPerformance)/media-manager/images)",
1455 "config": "$HOST_PATH($LOCATION(ApplicationsPerformance)/media-manager/config)",
1556 "postgres_data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/media-manager/postgres_data)",
1657 "additional_storage": [
58 "$MOUNTED_HOST_PATH($LOCATION(Media), /media)"
59 ]
60 },
61 "network": {
1762 "web_port": {"bind_mode": "published", "port_number": 30307}
63 },
1864 "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
65 }
66}
What this script does
Hover or tap a box to see the lines it explains.
-
Script format
Tells HexOS this is a version 5 install script, so it knows how to read the rest.
Line 2
-
Script revision
This copy of the script is revision 0.1.0. Latest change: “Auto-generated draft from TrueNAS media-manager 1.2.30”.
Lines 3–6
-
Questions you'll be asked
Before installing, HexOS will ask you for: Auth token secret. Your answers are slotted into the settings further down wherever you see $QUESTION(...).
Lines 7–14
-
Storage locations it needs
The app uses these HexOS storage locations: App storage (fast) and Media. If one isn't set up yet, HexOS will ask you to pick a place for it.
Line 16
-
Minimum hardware
Recommended minimum: 2 CPU cores.
Line 17
-
Permission to use your folders
Allows the app to read and write files inside the storage locations listed above — and nowhere else.
Line 18
-
Network ports
The app needs port 30307 to be free on your server. A port is like an apartment number for your server's address.
Line 19
-
Folders created on install
Creates the folders the app needs before it starts: App storage (fast) › media-manager, App storage (fast) › media-manager › data, App storage (fast) › media-manager › images, App storage (fast) › media-manager › config and App storage (fast) › media-manager › postgres_data. Some folders are handed to a specific system user so the app is allowed to write to them. Folders marked “snapshot” are included in HexOS snapshots, so you can roll them back.
Lines 21–45
-
Auto-generated db password
HexOS makes up a long random db password during install. It's only used inside Media Manager, so you never need to know it.
Line 48
-
Your server's address (frontend url)
Automatically set to your server's address on your home network (http://your-server-ip:30307).
Line 49
-
Your answer: auth token secret
Filled in with what you typed for “auth token secret” when you installed.
Line 50
-
Where the app's main data is saved
Where the app's main data is saved on your server: App storage (fast) › media-manager › data.
Line 53
-
Where the app's “images” files is saved
Where the app's “images” files is saved on your server: App storage (fast) › media-manager › images.
Line 54
-
Where the app's settings is saved
Where the app's settings is saved on your server: App storage (fast) › media-manager › config.
Line 55
-
Where the app's database is saved
Where the app's database is saved on your server: App storage (fast) › media-manager › postgres_data.
Line 56
-
Your shared folders
Gives the app access to your existing files: Media appears inside the app as /media.
Lines 57–59
-
Web port: 30307
The app's web page is published on port 30307. You don't need to remember it — clicking the app's card in HexOS takes you there.
Line 62
-
Resource limits
Caps how much of your server the app can use: 2 CPU cores and 10% of your server's memory, but never more than 4 GB. This keeps one busy app from slowing everything else down.
Line 64