refactor to mautrix 0.17.x; update deps

This commit is contained in:
Aine
2024-02-11 20:47:04 +02:00
parent 0a9701f4c9
commit dd0ad4c245
237 changed files with 9091 additions and 3317 deletions

View File

@@ -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),

View File

@@ -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