Re-work loading of configuration, introduce a loader for start up & and custom logging wrapper.
This commit is contained in:
19
models/config.go
Normal file
19
models/config.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
type Config struct {
|
||||
HttpServer struct {
|
||||
Port int `json:"port"`
|
||||
Address string `json:"address"`
|
||||
ProductionMode bool `json:"productionMode"`
|
||||
} `json:"httpServer"`
|
||||
|
||||
CSRF struct {
|
||||
CSRFKey string `json:"csrfKey"`
|
||||
} `json:"csrf"`
|
||||
|
||||
Session struct {
|
||||
SessionAuthKey string `json:"authKey"`
|
||||
SessionEncryptionKey string `json:"encryptionKey"`
|
||||
SessionName string `json:"sessionName"`
|
||||
} `json:"session"`
|
||||
}
|
||||
Reference in New Issue
Block a user