This document outlines the environment variables used in the application along with their default values and descriptions.
- Description: Specifies the verbosity level of logging.
- Type: Integer
- Environment Variable:
VERBOSITY
- Default Value:
2
3
= debug2
= info1
= warn0
= error
- Description: TCP address to listen to.
- Type: String
- Environment Variable:
LISTEN_ADDR
- Default Value:
:8080
- Description: Metrics TCP address to listen to.
- Type: String
- Environment Variable:
METRICS_ADDR
- Default Value:
:8081
- Description: Enable self-signed TLS.
- Type: Boolean
- Environment Variable:
TLS
- Default Value:
false
- Description: Enable Cross-Origin Resource Sharing (CORS).
- Type: Boolean
- Environment Variable:
CORS
- Default Value:
false
- Description: Enable JSON logs output.
- Type: Boolean
- Environment Variable:
JSON_LOGS
- Default Value:
false
- Description: Heartbeat interval in seconds.
- Type: Unsigned Integer
- Environment Variable:
HEARTBEAT_SECONDS
- Default Value:
10
- Description: Maximum message time-to-live (TTL) in seconds.
- Type: Unsigned Integer
- Environment Variable:
MAX_MESSAGE_TTL
- Default Value:
300
- Description: Number of heartbeat groups (shards).
- Type: Unsigned Integer
- Environment Variable:
HEARTBEAT_GROUPS
- Default Value:
10
- Description: Push Requests Per Second (RPS) limit.
- Type: Unsigned Integer
- Environment Variable:
PUSH_RPS_LIMIT
- Default Value:
5
- Description: Maximum parallel subscriptions per IP limit.
- Type: Unsigned Integer
- Environment Variable:
MAX_SUBSCRIBERS_PER_IP
- Default Value:
100
- Description: Maximum clients limit per subscription.
- Type: Unsigned Integer
- Environment Variable:
MAX_CLIENTS_PER_SUBSCRIPTION
- Default Value:
100
- Description: URL for webhook.
- Type: String
- Environment Variable:
WEBHOOK_URL
- Default Value: Not set
- Description: Bearer token to be sent in the Authorization header of webhook requests.
- Type: String
- Environment Variable:
WEBHOOK_AUTH
- Default Value: Not set
- Description: You can set tokens to be unlimited. To do this, you need to fill out the file unlimited_tokens.json in the format:
{
"tokens": ["first_token", "second_token"]
}