-
I can see that you can create multiple apps using a database like MySQL described in https://docs.soketi.app/app-management/sql-drivers/mysql which is great. However, is there a way to pass multiple app id and secret using environment variables? This is my docker-compose.yml file.
|
Beta Was this translation helpful? Give feedback.
Answered by
rennokki
Jan 8, 2022
Replies: 1 comment 1 reply
-
With the environment variables, it's not possible. But you can define a configuration file: {
"appManager.array.apps": [
{ "id": ... },
{ "id: ... }
]
} soketi start --config=/path/to/config.json The app object looks like this: export interface AppInterface {
id: string;
key: string;
secret: string;
maxConnections: string|number;
enableClientMessages: boolean;
enabled: boolean;
maxBackendEventsPerSecond?: string|number;
maxClientEventsPerSecond: string|number;
maxReadRequestsPerSecond?: string|number;
webhooks?: WebhookInterface[];
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dv336699
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the environment variables, it's not possible. But you can define a configuration file:
The app object looks like this: