MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / setDefaults

Function setDefaults

config/viper.go:31–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func setDefaults() {
32 viper.SetDefault("server.addr", ":9999")
33 viper.SetDefault("metrics.addr", ":9091")
34 viper.SetDefault("log.dir", "logs")
35 viper.SetDefault("jwt.auth_expire", 30)
36 viper.SetDefault("jwt.refresh_expire", 150)
37 viper.SetDefault("sms.provider", "mock")
38 viper.SetDefault("email.provider", "mock")
39 viper.SetDefault("ark_api.provider", "mock")
40 viper.SetDefault("es.bootstrap_indexes", true)
41 viper.SetDefault("cors.allow_all", false)
42 viper.SetDefault("cors.allow_origins", []string{
43 "http://localhost:3000",
44 "http://127.0.0.1:3000",
45 "http://localhost:5173",
46 "http://127.0.0.1:5173",
47 })
48}

Callers 1

InitViperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected