2024-07-31 16:01:18 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type ServerConfig struct {
|
|
|
|
MongoDB struct {
|
|
|
|
URI string `yaml:"uri"`
|
|
|
|
Database string `yaml:"database"`
|
|
|
|
} `yaml:"mongodb"`
|
|
|
|
Server struct {
|
2024-08-09 12:38:18 +00:00
|
|
|
Port string `yaml:"port"`
|
|
|
|
ReadTimeout int `yaml:"read_timeout"` // Timeout in seconds
|
|
|
|
WriteTimeout int `yaml:"write_timeout"` // Timeout in seconds
|
|
|
|
IdleTimeout int `yaml:"idle_timeout"` // Timeout in seconds
|
|
|
|
MaxConnections int `yaml:"max_connections"` // Maximum number of concurrent connections
|
|
|
|
MaxSubscriptionsPerClient int `yaml:"max_subscriptions_per_client"` // Maximum number of subscriptions per client
|
2024-07-31 16:01:18 +00:00
|
|
|
} `yaml:"server"`
|
2024-10-16 13:57:58 +00:00
|
|
|
RateLimit RateLimitConfig `yaml:"rate_limit"`
|
|
|
|
Blacklist BlacklistConfig `yaml:"blacklist"`
|
|
|
|
ResourceLimits ResourceLimits `yaml:"resource_limits"`
|
|
|
|
Auth AuthConfig `yaml:"auth"`
|
|
|
|
EventPurge EventPurgeConfig `yaml:"event_purge"`
|
2024-08-03 18:27:58 +00:00
|
|
|
}
|