grain/config/types/serverConfig.go

16 lines
466 B
Go
Raw Normal View History

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 {
Port string `yaml:"port"`
} `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
}