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
# OmniStream configuration template.
# Place at $XDG_CONFIG_HOME/omni-stream/config.toml,
# or set OMNI_CONFIG=/path/to/config.toml.
[]
# Use host = "0.0.0.0" to allow external access. Default is "127.0.0.1", which
# only allows access from localhost.
= "127.0.0.1"
= 28080
# Optional bearer-token gate on /api/*. When disabled (default), the API is
# open to anyone who can reach the port. Enable for internal-tool deployment.
# The token can also be supplied via the OMNI_AUTH_TOKEN environment variable.
[]
= false
# token = "replace-with-a-long-random-string"
# Define one or more storage backends. The entry with `active = true` is used;
# if none is active, the first entry is the default.
#
# Common fields:
# name Display name shown in the UI / used in /api?storage=<name>.
# type "s3" or "local".
# active Exactly one entry should be true; that one is served by default.
# ---- S3-compatible backend ----------------------------------------------
# Talks to AWS S3 or any S3-compatible gateway (MinIO, Ceph, AOSS, OSS, COS).
#
# s3 fields:
# endpoint Optional override. Omit for real AWS; set for self-hosted
# gateways. Use the *-internal variant when running inside
# the same VPC to avoid public-endpoint quotas / throttling.
# bucket Required. Bucket name only — no scheme, no slashes.
# access_key,
# secret_key Static credentials. Prefer env-injected values over
# committing plaintext here.
# region Optional. Defaults to "us-east-1", which satisfies SigV4
# for MinIO / LocalStack and AWS us-east-1 buckets.
# force_path_style Default true. Path-style URL = `endpoint/bucket/key`,
# used by MinIO / LocalStack / Ceph. Set false to switch to
# virtual-host style (`bucket.endpoint/key`), required by
# some gateways such as AOSS-internal that only resolve
# `*.bucket-host` and reject path-style.
[[]]
= "production-s3"
= "s3"
= true
= { = "http://localhost:9000", = "my-bucket", = "minioadmin", = "minioadmin", = true }
# ---- Local filesystem backend -------------------------------------------
# Serves files under a directory on the host.
#
# local fields:
# root_path Required. Absolute path or `~` / `~/sub/dir` — a leading
# tilde is expanded to $HOME at config-load time. Path
# traversal (`..`) outside this root is rejected.
# follow_symlinks Default true. When true, symlinks under root are followed
# transparently (a symlinked directory shows as a directory
# in listings). When false, symlinks are surfaced as their
# own entries and reading them returns Forbidden — useful
# when root contains untrusted user-controlled paths.
[[]]
= "local-data"
= "local"
= false
= { = "/var/lib/omni-stream", = true }
# Environment overrides (prefix OMNI_, separator _):
# OMNI_SERVER_HOST, OMNI_SERVER_PORT