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-08 12:40:23 +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
|
2024-07-31 16:01:18 +00:00
|
|
|
} `yaml:"server"`
|
2024-08-03 20:18:34 +00:00
|
|
|
RateLimit RateLimitConfig `yaml:"rate_limit"`
|
|
|
|
PubkeyWhitelist PubkeyWhitelistConfig `yaml:"pubkey_whitelist"`
|
|
|
|
KindWhitelist KindWhitelistConfig `yaml:"kind_whitelist"`
|
2024-08-04 18:02:53 +00:00
|
|
|
DomainWhitelist DomainWhitelistConfig `yaml:"domain_whitelist"`
|
2024-08-03 18:27:58 +00:00
|
|
|
}
|