forked from nixcn/nixcn-cms
@@ -3,6 +3,9 @@ package config
|
||||
type config struct {
|
||||
Server server `yaml:"server"`
|
||||
Database database `yaml:"database"`
|
||||
Email email `yaml:"email"`
|
||||
Secrets secrets `yaml:"secrets"`
|
||||
TTL ttl `yaml:"ttl"`
|
||||
}
|
||||
|
||||
type server struct {
|
||||
@@ -19,3 +22,17 @@ type database struct {
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
}
|
||||
|
||||
type email struct {
|
||||
ResendApiKey string `yaml:"resend_api_key"`
|
||||
From string `yaml:"from"`
|
||||
}
|
||||
|
||||
type secrets struct {
|
||||
jwt string `yaml:"jwt"`
|
||||
turnstile string `yaml:"turnstile"`
|
||||
}
|
||||
|
||||
type ttl struct {
|
||||
magic_token string `yaml:"magin_token"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user