netplay-lobby-server-go/config.go
2024-12-24 22:09:17 +08:00

29 lines
624 B
Go

package main
// Config is the struct that holds the lobby server configuration
type Config struct {
Server ServerConfig
Database DatabaseConfig
Relay map[string]string
Blacklist BlacklistConfig
}
// ServerConfig holds the basic server config.
type ServerConfig struct {
Address string
GeoLite2Path string
TemplatePath string
}
// DatabaseConfig holds the database config.
type DatabaseConfig struct {
Type string
Connection string
}
// BlacklistConfig configures the different blacklists.
type BlacklistConfig struct {
Strings []string // General blacklisted words as RE
IPs []string
}