Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
164 lines (153 loc) · 8.11 KB
/
Copy pathconfig.example.toml
File metadata and controls
164 lines (153 loc) · 8.11 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# VuIO Server Configuration Example
# Copy this file to your platform's config directory and rename to config.toml
#
# Platform-specific config locations:
# - Native apps: ./config/config.toml
# - Docker: /config/config.toml (mounted volume)
#
# Every setting below can also be viewed and changed from the dashboard's Admin tab,
# which writes back to this file. A commented-out key is optional: leave it out and
# the default shown beside it applies. The keys that are not commented out are
# required, and the server will not start without them.
[server]
port = 8080
interface = "0.0.0.0"
name = "VuIO"
# Regenerate this for each server. A changed UUID makes clients treat it as new hardware.
uuid = "129c3ee9-4fd2-45ea-9f11-7a15e6d831ef"
# Address written into the media URLs handed to clients. Detected when omitted;
# usually only needed in Docker, where the container cannot see its host address.
# ip = "192.168.1.126"
[network]
interface_selection = "Auto" # "Auto", "All", or a specific interface name
multicast_ttl = 4 # SSDP multicast time-to-live
announce_interval_seconds = 300
# mdns_enabled = true # Also advertise over Bonjour/DNS-SD
# upnp_callback_allowed_networks = [] # Extra CIDRs allowed as UPnP event callbacks
# Note: SSDP port is hardcoded to 1900 (DLNA standard) and cannot be changed
[media]
scan_on_startup = true
watch_for_changes = true
supported_extensions = [
"mp4", "mkv", "avi", "mov", "wmv", "flv", "webm", "m4v", "mpg", "mpeg", "ts", "3gp", "ogv",
"mp3", "flac", "wav", "aac", "ogg", "wma", "m4a", "opus", "ape",
# Elementary Dolby and DTS streams, decoded for renderers that cannot play them.
"ac3", "eac3", "ec3", "dts",
"jpg", "jpeg", "png", "gif", "bmp", "webp", "tiff", "svg", "heif", "heic", "avif"
]
# cleanup_deleted_files = true # Drop files the startup scan finds gone
# autoplay_enabled = true # Let renderers continue to the next item
# scan_playlists = true # Index .m3u and .pls files
# unavailable_root_grace_hours = 168 # How long an offline library keeps its content
# Add one or more media directories to monitor
[[media.directories]]
path = "/Users/alex/Movies" # Change this to your actual media directory
recursive = true
# extensions = ["mp4", "mkv", "avi"] # Optional: Override global extensions for this directory
# exclude_patterns = ["*.tmp", ".*"] # Optional: Files/patterns to exclude
# case_sensitive = true # Optional: omit to auto-detect per volume
# validation_mode = "Warn" # "Warn", "Strict", or "Skip" when the path is missing
# Example: Additional media directory
# [[media.directories]]
# path = "/path/to/your/music"
# recursive = true
# extensions = ["mp3", "flac", "wav"]
[database]
# Reclaim free space in the index at startup and shutdown; rewrites the whole file.
vacuum_on_startup = false
backup_enabled = false
# Omit to use the platform-appropriate default location.
path = "./config/media.db"
# Megabytes of index cached, as a budget *per connection* — one writer plus two
# to four readers. Only a connection that runs a large query fills its share, so
# in practice resident memory grows by about this much, not a multiple of it.
# Folder browsing is served from indexes and does not care. Full-text search does:
# on a very large library it stays slow until the whole search index fits, then
# roughly halves. Measured at 500,000 files that threshold was near 192, and
# anything below it cost memory without making search faster — which is why the
# default is small. Raise it past the threshold, or not at all.
# cache_mb = 8
# The modern browser interface, served on a second port beside the built-in
# dashboard. It is a second front end, not a second server: the same API, the
# same media streams and the same [management] access rules, on another socket.
# It binds the same interface as [server], so restricting that restricts both.
[web_ui]
enabled = true
port = 8090 # Must differ from server.port
[management]
# Requires a token for the dashboard and every management endpoint.
# --auth and VUIO_AUTH=1 turn this on too; any of the three is enough.
# enabled = false
# Omit to create/use admin.token beside the config file. VUIO_ADMIN_TOKEN overrides it.
# token_file = ""
# session_ttl_hours = 12
# Management is loopback-only unless CIDRs are explicitly listed.
# allowed_networks = []
# Model Context Protocol server, at POST /mcp on the main port.
# Lets an AI assistant such as Claude browse, search, build playlists and cast
# to your devices. See the MCP section of the README to connect a client.
[mcp]
# enabled = true
# Offer only the browsing and searching tools, hiding everything that changes a
# playlist or drives a device.
# read_only = false
# Demand `Authorization: Bearer <admin token>` on /mcp even when [management] is
# off. Worth turning on whenever this server is reachable beyond loopback.
# require_auth = false
[mediainfo]
# Fetch titles, synopses, ratings and artwork from public metadata services.
# This is the only part of VuIO that contacts anything outside the local
# network, and nothing is requested until you press Fetch in the dashboard.
# enabled = false
# Providers to consult. The five listed here need no account; tmdb, omdb,
# discogs, lastfm and genius work once you save a key in the dashboard.
# providers = ["tvmaze", "musicbrainz", "jikan", "anilist", "kitsu"]
# Download posters and cover art into a local cache so DLNA clients, which
# usually cannot reach the internet, can still display them.
# artwork_enabled = true
# Omit to keep the cache beside the database.
# artwork_path = "./config/artwork"
# Matches scoring below this are stored but flagged for review rather than
# trusted. 0-100.
# min_confidence = 60
# Whether a fetched title outranks the one read from the file's own tags.
# prefer_online_titles = true
# request_timeout_seconds = 15
# Audio for TVs that cannot decode AC-3, Dolby Digital Plus or DTS.
# Those codecs are licensed, and a set sold without the licence plays the
# picture and nothing else. When this is on, such a film is offered twice — the
# original and an already-decoded version — and the TV plays whichever it can.
# A TV that was already fine is unaffected.
[transcode]
enabled = true
# What the decoded version is delivered as.
# ac3 Dolby Digital, which is what a television was built to decode. The
# only one that keeps a film's surround: a DTS 5.1 soundtrack arrives
# as AC-3 5.1 at 640 kbps rather than folded down to a stereo pair.
# Constant-bitrate, so an audio item gets an exact Content-Length and
# real byte-range seeking
# aac about a third of that, lossy, and folded down to stereo in every
# case. The encoder's output size is not known ahead of time, so an
# audio item carries no Content-Length and cannot be scrubbed
# lpcm uncompressed, seekable, about 1.5 Mbps. Audio items only — a film's
# soundtrack shares a transport stream with the picture, where PCM at
# 1.5 Mbps a channel does not fit, so a film falls back to ac3
# A film's picture is copied through untouched whatever this says. To a
# television it goes as a transport stream, seekable by byte; to the browser
# player as fragmented MP4 with AAC, because no browser decodes AC-3.
audio_format = "ac3"
# Operating mode for transcode advertisement:
# enabled transcode is available; original stream listed first, transcode as alternative
# forced transcode is forced; only transcoded stream is offered so every TV plays it
# disabled transcode is disabled
mode = "enabled"
# Sessions allowed at once, shared between TVs and the browser player. Past this
# a further request is refused rather than queued.
#
# Set high on purpose. A television opens three connections within a second of
# pressing play — one to play on, one to read the end of the file, and one to
# play on again — so a low ceiling refuses the one it meant to play on and the
# film never starts. The work is cheap besides: the picture is passed through
# and so is Dolby, and only a DTS soundtrack is really decoded. Lower it only if
# you have a genuine reason to cap the CPU.
max_concurrent = 100