Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
315 lines (291 loc) · 15.3 KB
/
Copy path.env.example
File metadata and controls
315 lines (291 loc) · 15.3 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# Silo Docker deployment
# For the default docker compose setup, MEDIA_ROOT is the main value you need to set.
# Hardware transcoding (VA-API or NVIDIA) and node access are commented out in
# docker-compose.yml; uncomment the lines you need there.
#
# An install from before the omnibus image, with PostgreSQL and Redis in
# containers of their own, keeps that layout with docker-compose.advanced.yml
# in place of docker-compose.yml:
# COMPOSE_FILE=docker-compose.advanced.yml
# Set it before updating: docker-compose.yml is an example of a new install,
# and started on an earlier one it comes up on a new, empty database. Moving
# the install into the single container is a separate step; see
# docs/architecture/omnibus-image.md.
# Required for docker compose: host path to your media library.
# Example: MEDIA_ROOT=/srv/media
MEDIA_ROOT=/srv/media
# Container path where Silo sees MEDIA_ROOT. New installs can keep /mnt/media.
# Continuum migrations should set this to the old in-container library path if
# existing library records use that path.
MEDIA_CONTAINER_ROOT=/mnt/media
# Recommended server data root for bind mounts.
SILO_DATA_ROOT=/opt/silo
# Silo's Docker image. Override to pin a specific tag, such as build-N, if
# needed.
# SILO_OMNIBUS_IMAGE=ghcr.io/silo-server/silo-server:latest
# The account that runs Silo and owns its files under SILO_DATA_ROOT/config.
# It needs read access to MEDIA_ROOT.
# PUID=1000
# PGID=1000
# TZ=Etc/UTC
# Bundled services. PostgreSQL always runs. docker-compose.yml starts Redis
# unless ENABLE_REDIS=false; Watch Party rooms need it, Meilisearch search uses
# it to share paging sessions and keep them across restarts, and
# ENABLE_MEILISEARCH starts it regardless. The image generates a
# Meilisearch master key on first start unless MEILI_MASTER_KEY is set.
# ENABLE_REDIS=false
# ENABLE_MEILISEARCH=true
# MEILI_MASTER_KEY=replace-with-output-of-openssl-rand-hex-32
# Set for one start after an image update moves to a new Meilisearch version,
# then remove it.
# MEILI_UPGRADE_DB=true
# To use a Meilisearch of your own instead, leave ENABLE_MEILISEARCH unset and
# set these. While set, they replace the search settings in the admin UI on
# every start, like the server settings further down.
# SILO_SEARCH_PROVIDER=meilisearch
# SILO_MEILISEARCH_URL=http://meilisearch.example:7700
# SILO_MEILISEARCH_API_KEY=
# PostgreSQL auto-tuning is enabled by default in the omnibus image. Silo
# applies pgtune-style OLTP recommendations through ALTER SYSTEM at startup.
# Set POSTGRES_TUNE=off if you manage PostgreSQL tuning yourself.
# POSTGRES_TUNE=off
# POSTGRES_TUNE_PROFILE=oltp
# auto gives shared_buffers a quarter of the memory budget, up to 2GB. A size
# set here is the whole budget and is used as given: 32GB gives 8GB.
# POSTGRES_TUNE_MEMORY=auto
# POSTGRES_TUNE_MEMORY_BUDGET_PERCENT=50
# auto sizes worker settings from at most 16 CPUs, since a container without a
# CPU limit sees every core of its host. A number set here is used as given.
# POSTGRES_TUNE_CPUS=auto
# POSTGRES_TUNE_STORAGE=ssd
# POSTGRES_TUNE_DB_SIZE=auto
# POSTGRES_TUNE_CONNECTIONS sets max_connections. With more than one Silo
# process (API, proxy and transcode nodes), cover database.max_connections
# (20 by default) for every one of them, plus room for admin sessions.
# POSTGRES_TUNE_CONNECTIONS=100
# Optional host port overrides for docker-compose.yml. The container listeners
# remain fixed, so these values only change the host side of each port mapping.
# PORT=8090
# Jellyfin/Emby and Audiobookshelf compatibility listeners are enabled by
# default and can be managed through admin settings.
# JF_PORT=8096
# ABS_PORT=13378
# Transcode nodes. On a node's own host, run docker-compose.yml with these and
# MEDIA_ROOT mounted at the same container path as on the main server. Add the
# node in the admin node settings and issue it a key, or declare it on the main
# server (SILO_TRANSCODE_NODES below): SILO_NODE_KEY is that key,
# SILO_CORE_URL the URL this node reaches the main server at. The node
# takes everything else from the main server and opens no database or Redis;
# it ignores DATABASE_URL, REDIS_URL, SECRET_KEY, NODE_URL and NODE_NAME, so a
# copied .env keeps working (docker-compose.yml still asks for a SECRET_KEY).
# The node reads its FFmpeg path, directories and input paths from the main
# server's answers: use https:// or a network you trust.
# MODE=transcode
# SILO_CORE_URL=http://192.168.1.10:8090
# SILO_NODE_KEY=
# Declared transcode nodes, on the main server only (never copy these to a
# node's host). The main server creates each listed node with its key at
# startup and owns it: its key is not issued and it is not deleted in the admin
# settings. Write each key with `silo node-key generate --id <n>` and give the
# same key to that node's SILO_NODE_KEY. Set one of the two; inline is JSON, the
# file YAML or JSON. Each key is read from a file or variable, never written in
# the declaration. `{"apiVersion":1,"nodes":{}}` releases every node.
# SILO_TRANSCODE_NODES={"apiVersion":1,"nodes":{"gpu-1":{"url":"http://192.168.1.20:8082","key":{"fromEnv":"GPU1_NODE_KEY"}}}}
# SILO_TRANSCODE_NODES_FILE=/run/secrets/transcode-nodes.yaml
# PORT=8082
# ENABLE_REDIS=false
# SILO_STOP_GRACE_PERIOD=11m
# Optional: the node declares these fields of its own entry, and the admin node
# editor shows them read-only while they are set. Unset leaves a field to the
# administrator; 0 for a cap is unlimited. Changing one takes a restart. The
# node itself holds to its cap, acceleration, device, source access and
# prepared-download directory and budget whatever the main server's entry says,
# and puts a changed entry back within a minute; name, URL and group are how
# the main server places it. Do not copy SILO_NODE_URL or SILO_NODE_NAME from a
# proxy's .env: a transcode node acts on them, unlike NODE_URL and NODE_NAME.
# SILO_NODE_NAME=gpu-01
# SILO_NODE_URL=http://192.168.1.30:8082
# SILO_NODE_GROUP=rack-a
# SILO_NODE_MAX_TRANSCODES=4
# SILO_NODE_SOURCE_ACCESS=local
# SILO_NODE_HW_ACCEL=vaapi
# SILO_NODE_HW_DEVICE=/dev/dri/renderD128
# SILO_NODE_DOWNLOAD_ARTIFACT_DIR=/transcode/download-artifacts
# SILO_NODE_DOWNLOAD_ARTIFACT_MAX_BYTES=0
# Proxy nodes. On the main server, set these and uncomment the two node-access
# ports in docker-compose.yml; generate each password with:
# openssl rand -hex 24
# ENABLE_NODE_ACCESS=true
# NODE_ACCESS_HOST=192.168.1.10
# POSTGRES_PASSWORD=
# REDIS_PASSWORD=
# POSTGRES_PORT=5432
# REDIS_PORT=6379
# On a proxy's own host, run docker-compose.yml with these and the same
# SECRET_KEY as the main server. SILO_NODE_URL (or NODE_URL) is required: it is
# how the main server reaches this proxy, and it keeps session keys from
# colliding across nodes. With SILO_NODE_REGISTER=true, a proxy with no entry on
# the main server adds its own, named SILO_NODE_NAME (or NODE_NAME); leave it
# off for a proxy registered at a different address than SILO_NODE_URL.
# MODE=proxy
# DATABASE_URL=postgres://silo:<POSTGRES_PASSWORD>@192.168.1.10:5432/silo?sslmode=disable
# REDIS_URL=redis://:<REDIS_PASSWORD>@192.168.1.10:6379
# SILO_NODE_URL=http://192.168.1.20:8082
# SILO_NODE_NAME=proxy-01
# SILO_NODE_REGISTER=true
# PORT=8082
# ENABLE_REDIS=false
# Optional: fields the proxy declares, shown read-only in the admin node editor.
# SILO_NODE_PUBLIC_URL=https://proxy-01.example.com
# SILO_NODE_GROUP=rack-a
# SILO_NODE_MAX_STREAMS=0
# SILO_NODE_MAX_BANDWIDTH_KBPS=0
# GPU count for the commented NVIDIA lines in the Compose files.
# NVIDIA_GPU_COUNT=1
# REQUIRED: master key for at-rest credential encryption. Silo refuses to start
# without it. Integration API keys, S3 keys, and other server-owned secrets are
# encrypted under a key derived from this value, so it must be at least 32
# characters and kept secret. Generate one with:
# openssl rand -base64 48
# Back it up SEPARATELY from your database dumps (treat it like a CA private
# key): losing it makes every encrypted secret unrecoverable. See
# docs/architecture/secret-encryption.md.
# SECRET_KEY=replace-with-output-of-openssl-rand-base64-48
# Optional public URL for Silo. If not set, the server will use the IP address of the container.
# Optional trusted reverse-proxy CIDRs for client IP resolution. Defaults trust
# RFC 1918 private ranges + loopback. Like every variable in the next section,
# it replaces the admin setting on every start while set.
# SILO_TRUSTED_PROXIES=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.0/8,::1/128,203.0.113.7/32
# Server settings from the environment. internal/config/env_settings.go lists
# every variable and the setting it sets. An API server checks each value the
# way an admin save does and refuses to start on an invalid one. While a
# variable is set, the admin UI shows its setting read-only. A blank value
# counts as unset: it neither clears the setting nor makes it read-only, and
# removing a stored variable leaves its last value in place.
# Most are stored for the whole cluster, so give every API server the same
# values:
# SILO_SERVER_NAME=Silo
# SILO_PUBLIC_URL=https://silo.example.com
# SILO_LOCAL_URL=http://192.168.1.20:8080
# SILO_WEB_MEDIA_URL=https://media.example.com
# SILO_LAN_DISCOVERY=true
# SILO_LOG_LEVEL=info
# SILO_LOG_FORMAT=json
# SILO_SIGNUP_ENABLED=false
# SILO_JELLYFIN_ENABLED=true
# SILO_JELLYFIN_PUBLIC_URL=https://jellyfin.example.com
# SILO_JELLYFIN_SERVER_NAME=Silo
# SILO_AUDIOBOOKSHELF_ENABLED=false
# SILO_SMTP_ENABLED=true
# SILO_SMTP_HOST=smtp.example.com
# SILO_SMTP_PORT=587
# SILO_SMTP_SECURITY=starttls
# SILO_SMTP_USER=
# SILO_SMTP_PASSWORD=
# SILO_SMTP_FROM_ADDRESS=silo@example.com
# SILO_SMTP_FROM_NAME=Silo
# SILO_DISCORD_CLIENT_ID=
# SILO_DISCORD_CLIENT_SECRET=
# SILO_DISCORD_BOT_TOKEN=
# SILO_FFMPEG_PATH=/usr/lib/jellyfin-ffmpeg/ffmpeg
# SILO_HW_ACCEL=vaapi
# SILO_HW_DEVICE=/dev/dri/renderD128
# SILO_TRANSCODE_ENABLED=true
# SILO_TRANSCODE_DIR=/transcode
# SILO_DOWNLOAD_ARTIFACT_DIR=
# SILO_DOWNLOAD_ARTIFACT_MAX_BYTES=0
# SILO_SCANNER_REALTIME_MONITORING=true
# SILO_BACKUP_ENABLED=true
# SILO_BACKUP_TIME=04:00
# SILO_BACKUP_KEEP=7
# SILO_BACKUP_INCLUDE_SUBTITLES=true
# SILO_BACKUP_INCLUDE_INTRO_FINGERPRINTS=false
# SILO_TMDB_API_KEY=
# SILO_MDBLIST_API_KEY=
# SILO_MEILISEARCH_INDEX=silo_media_items
# Recommendations. SILO_RECOMMENDATIONS_PROVIDER names a connected AI provider
# that serves embeddings, by id, such as one the deployment document declares.
# SILO_RECOMMENDATIONS_ENABLED=true
# SILO_RECOMMENDATIONS_PROVIDER=
# SILO_RECOMMENDATIONS_MODEL=
# Storage: SILO_ARTWORK_STORAGE (auto, local or s3), SILO_ARTWORK_PATH, and
# SILO_S3_PUBLIC_* and SILO_S3_PRIVATE_* with ENDPOINT, REGION, BUCKET,
# KEY_PREFIX, PATH_STYLE, ACCESS_KEY and SECRET_KEY, plus
# SILO_S3_PUBLIC_READ_ENDPOINT, SILO_S3_PUBLIC_URL_AUTH, and for the
# cloudflare_token mode SILO_S3_PUBLIC_TOKEN_SECRET, SILO_S3_PUBLIC_TOKEN_PARAM
# and SILO_S3_PUBLIC_TOKEN_TTL. Once Silo has written to storage, these must
# name that location; to move storage, unset them, restart every API server,
# and run a managed storage transition.
# These apply to the one server that reads them and are never stored:
# SILO_DB_MAX_CONNECTIONS=20
# SILO_USERDB_POOL_MAX_OPEN=
# SILO_SCANNER_WORKERS=
# SILO_MATCHER_WORKERS=
# Deployment document: JSON inline in SILO_CONFIG, or a JSON or YAML file named
# by SILO_CONFIG_FILE. It installs and configures official plugins (plugins:)
# and connects AI providers (ai_providers:), each keyed by its id, with secrets
# given as {fromFile: <path>} or {fromEnv: <VARIABLE>}. SILO_PLUGINS and
# SILO_PLUGINS_FILE name the same document; set only one of the four.
# SILO_CONFIG_FILE=/config/deployment.yaml
# Run from source / advanced overrides
# DATABASE_URL and SECRET_KEY are required when running Silo outside the default
# Docker Compose file. REDIS_URL is optional for integrated/API mode and
# required for standalone proxy mode. In the omnibus image, setting
# either one points Silo at that server and leaves the bundled one off.
# Secrets can come from mounted files, as Docker and Kubernetes provide them:
# DATABASE_URL_FILE, SECRET_KEY_FILE, REDIS_URL_FILE and SILO_NODE_KEY_FILE,
# and the _FILE variant of each secret SILO_ setting above
# (SILO_SMTP_PASSWORD_FILE, SILO_S3_PRIVATE_SECRET_KEY_FILE, ...), name a file
# to read the value from. One trailing line ending is removed. Set a variable
# or its _FILE variant, not both. docker-compose.yml sets SECRET_KEY itself,
# and docker-compose.advanced.yml sets SECRET_KEY, DATABASE_URL and REDIS_URL;
# to use a _FILE variant with either, mount the secret and replace that line
# with the _FILE variable. The image's own POSTGRES_PASSWORD, REDIS_PASSWORD
# and MEILI_MASTER_KEY have no _FILE variant; FILE__NAME loads those instead.
# DATABASE_URL=postgres://silo:password@localhost:5432/silo
# Optional Redis override when running from source or pointing workers at an external Redis.
# REDIS_URL=redis://localhost:6379
# Installs that share one Redis server each need their own database number:
# REDIS_URL=redis://localhost:6379/1
# Redis Sentinel: the host and each addr are Sentinel addresses, master_name is
# the monitored master. User info in the URL authenticates to Sentinel; the
# username and password parameters authenticate to the Redis servers. Every
# address needs its port, and reserved characters in user names and passwords
# have to be percent-encoded. With rediss://, every Sentinel and Redis server
# needs a certificate that is valid for the host name in the URL.
# REDIS_URL=redis://sentinel-1:26379/1?master_name=mymaster&addr=sentinel-2:26379&addr=sentinel-3:26379
# Optional proxy identity settings for custom proxy deployments. SILO_NODE_NAME
# and SILO_NODE_URL are the preferred spellings of NODE_NAME and NODE_URL.
# SILO_NODE_NAME=proxy-01
# SILO_NODE_URL=http://proxy-01.example.com:8082
# Optional server mode override for source runs or standalone worker nodes.
# MODE=integrated
#SILO_MIGRATE_TIMEOUT=60m
# Before applying migrations at startup, Silo backs up the database (unless
# backups are off) and refuses to start if that backup fails, for example
# because pg_dump 18 is not installed. Set this for one start to skip the
# backup, then remove it. A source build on a machine without pg_dump 18 can
# keep it set, or turn off backups in the admin settings.
# SILO_SKIP_BACKUP_BEFORE_MIGRATE=true
# How long a server waits while another one backs up and migrates.
# SILO_MIGRATION_WAIT=60m
# Optional: Silo asks the kernel for BBR congestion control on its client
# listeners. Set off to keep the kernel default (the undo). Values: bbr, off.
# SILO_NET_TCP_CONGESTION=off
# Optional: set off to keep kernel send-buffer autotuning. Default: 33554432 bytes.
# SILO_NET_TCP_SEND_BUFFER=off
# Optional: fixed UDP port for direct connections, 1-65535. Compose publishes
# it as the same host port. Default: 8094.
# SILO_NET_DIRECT_UDP_PORT=8094
# Optional local profiling in every serving process; disabled when empty.
# Use literal loopback addresses only. Container loopback is accessible from
# the container's network namespace; do not publish or proxy this port.
# SILO_DEBUG_LISTEN=127.0.0.1:6060
# Optional Prometheus metrics listener; disabled when empty. Keep it on a
# private monitoring network because the endpoint has no application auth.
# SILO_METRICS_LISTEN=127.0.0.1:9091
# Contention sampling requires the listener and a restart; both default to 0.
# Block rate is the average blocked nanoseconds per sample: 1000000..1000000000.
# SILO_DEBUG_BLOCK_RATE=10000000
# Mutex fraction samples one in N contention events: 100..1000000.
# SILO_DEBUG_MUTEX_FRACTION=100