refactor to mautrix 0.17.x; update deps
This commit is contained in:
@@ -48,6 +48,11 @@ func New() *Config {
|
||||
DSN: env.String("db.dsn", defaultConfig.DB.DSN),
|
||||
Dialect: env.String("db.dialect", defaultConfig.DB.Dialect),
|
||||
},
|
||||
PSD: PSD{
|
||||
URL: env.String("psd.url"),
|
||||
Login: env.String("psd.login"),
|
||||
Password: env.String("psd.password"),
|
||||
},
|
||||
Relay: Relay{
|
||||
Host: env.String("relay.host", defaultConfig.Relay.Host),
|
||||
Port: env.String("relay.port", defaultConfig.Relay.Port),
|
||||
|
||||
@@ -38,6 +38,9 @@ type Config struct {
|
||||
// DB config
|
||||
DB DB
|
||||
|
||||
// PSD config
|
||||
PSD PSD
|
||||
|
||||
// TLS config
|
||||
TLS TLS
|
||||
|
||||
@@ -78,6 +81,12 @@ type Mailboxes struct {
|
||||
Activation string
|
||||
}
|
||||
|
||||
type PSD struct {
|
||||
URL string
|
||||
Login string
|
||||
Password string
|
||||
}
|
||||
|
||||
// Relay config
|
||||
type Relay struct {
|
||||
Host string
|
||||
|
||||
Reference in New Issue
Block a user