switched to gorm..
This commit is contained in:
@@ -10,12 +10,13 @@ import (
|
||||
)
|
||||
|
||||
type DatabaseConfig struct {
|
||||
DBPath string `json:"DBPath"`
|
||||
Path string `json:"Path"`
|
||||
}
|
||||
|
||||
type AuthenticationConfig struct {
|
||||
JWTSecret string
|
||||
CSRFSecret string
|
||||
APIKEY string `json:"APIKey"`
|
||||
}
|
||||
|
||||
type SMTPConfig struct {
|
||||
@@ -31,10 +32,10 @@ type TemplateConfig struct {
|
||||
MailDir string `json:"MailDir"`
|
||||
}
|
||||
type Config struct {
|
||||
DB DatabaseConfig `json:"db"`
|
||||
Auth AuthenticationConfig
|
||||
SMTP SMTPConfig `json:"smtp"`
|
||||
Templates TemplateConfig `json:"templates"`
|
||||
Auth AuthenticationConfig `json:"auth"`
|
||||
DB DatabaseConfig `json:"db"`
|
||||
Templates TemplateConfig `json:"templates"`
|
||||
SMTP SMTPConfig `json:"smtp"`
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user