package config type ServerConfig struct { PrivateKeyPath InterpolatedString `yaml:"privateKeyPath"` Issuer InterpolatedString `yaml:"issuer"` HTTP HTTPConfig `yaml:"http"` Database DatabaseConfig `yaml:"database"` CORS CORSConfig `yaml:"cors"` } func NewDefaultServerConfig() ServerConfig { return ServerConfig{ PrivateKeyPath: "server-key.json", Issuer: "http://127.0.0.1:3000", HTTP: NewDefaultHTTPConfig(), Database: NewDefaultDatabaseConfig(), CORS: NewDefaultCORSConfig(), } }