Initial commit

This commit is contained in:
ycc
2024-07-26 13:46:05 +02:00
commit 6f4a51e28e
35 changed files with 1181 additions and 0 deletions

7
conf/app.conf Normal file
View File

@@ -0,0 +1,7 @@
appname = oc-auth
httpport = 8080
runmode = dev
autorender = false
copyrequestbody = true
EnableDocs = true
sqlconn =

20
conf/config.go Normal file
View File

@@ -0,0 +1,20 @@
package conf
import "sync"
type Config struct {
NatsUrl string
NatsLogin string
NatsPassword string
OidcUrl string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}