1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat(subscriptions): introduce config options and user attribute to support subscriptions

This commit is contained in:
Ferdinand Mütsch
2022-12-03 00:14:37 +01:00
parent 52d45d4644
commit 333c1b5dd0
2 changed files with 27 additions and 21 deletions

View File

@@ -122,6 +122,10 @@ type serverConfig struct {
TlsKeyPath string `yaml:"tls_key_path" default:"" env:"WAKAPI_TLS_KEY_PATH"`
}
type subscriptionsConfig struct {
Enabled bool `yaml:"enabled" default:"false" env:"WAKAPI_SUBSCRIPTIONS_ENABLED"`
}
type sentryConfig struct {
Dsn string `env:"WAKAPI_SENTRY_DSN"`
EnableTracing bool `yaml:"enable_tracing" env:"WAKAPI_SENTRY_TRACING"`
@@ -161,6 +165,7 @@ type Config struct {
Security securityConfig
Db dbConfig
Server serverConfig
Subscriptions subscriptionsConfig
Sentry sentryConfig
Mail mailConfig
}