Allow specifying configuration params in env vars (#83)

This commit is contained in:
Dustin J. Mitchell 2025-02-02 22:39:45 -05:00 committed by GitHub
parent 5ffd179dcc
commit 7f51d2fa1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 191 additions and 44 deletions

View file

@ -73,12 +73,18 @@ The server is configured with command-line options. See
The `--listen` option specifies the interface and port the server listens on.
It must contain an IP-Address or a DNS name and a port number. This option is
mandatory, but can be repeated to specify multiple interfaces or ports.
mandatory, but can be repeated to specify multiple interfaces or ports. This
value can be specified in environment variable `LISTEN`, as a comma-separated
list of values.
The `--data-dir` option specifies where the server should store its data.
The `--data-dir` option specifies where the server should store its data. This
value can be specified in the environment variable `DATA_DIR`.
By default, the server allows all client IDs. To limit the accepted client IDs,
such as when running a personal server, use `--allow-client-id <client-id>`.
specify them in the environment variable `CLIENT_ID`, as a comma-separated list
of UUIDs. Client IDs can be specified with `--allow-client-id`, but this should
not be used on shared systems, as command line arguments are visible to all
users on the system.
The server only logs errors by default. To add additional logging output, set
environment variable `RUST_LOG` to `info` to get a log message for every