soketi
Search…
πŸ’Ώ
Configuring the server

Environment variables

You may declare soketi server configuration options using environment variables when invoking the soketi server directly on the CLI, or as key-value attributes in an .env file that is placed at the location from where the soketi server command is being run:
1
DEBUG=1 soketi start
Copied!
Or, when using an .env file:
1
# Within your .env file
2
SOKETI_DEBUG=1
Copied!
1
soketi start
Copied!
Many soketi features can be controlled using environment variables, and each of these variables are discussed in the relevant sections of this documentation.

File configuration

Starting with soketi 0.24, you can define a JSON-formatted file which can contain dot-formatted values for your configuration:
1
{
2
"appManager.array.apps.0.id": "some-id",
3
"appManager.array.apps.0.key": "some-key",
4
"appManager.array.apps.0.secret": "some-secret",
5
"appManager.array.apps.0.webhooks": [{
6
"url": "https://...",
7
"event_types": ["channel_occupied"],
8
}],
9
"debug": true,
10
"port": 6002
11
}
Copied!
1
soketi start --config=/path/to/config.json
Copied!
The full list of available options can be found in the Options interface.
Last modified 11d ago
Copy link
Edit on GitHub