updated deps; updated healthchecks.io integration
This commit is contained in:
@@ -38,10 +38,11 @@ func New() *Config {
|
||||
Port: env.String("tls.port", defaultConfig.TLS.Port),
|
||||
},
|
||||
Monitoring: Monitoring{
|
||||
SentryDSN: env.String("monitoring.sentry.dsn", env.String("sentry.dsn", "")),
|
||||
SentrySampleRate: env.Int("monitoring.sentry.rate", env.Int("sentry.rate", 0)),
|
||||
HealchecksUUID: env.String("monitoring.healthchecks.uuid", ""),
|
||||
HealthechsDuration: time.Duration(env.Int("monitoring.healthchecks.duration", int(defaultConfig.Monitoring.HealthechsDuration))) * time.Second,
|
||||
SentryDSN: env.String("monitoring.sentry.dsn", env.String("sentry.dsn", "")),
|
||||
SentrySampleRate: env.Int("monitoring.sentry.rate", env.Int("sentry.rate", 0)),
|
||||
HealthchecksURL: env.String("monitoring.healthchecks.url", defaultConfig.Monitoring.HealthchecksURL),
|
||||
HealthchecksUUID: env.String("monitoring.healthchecks.uuid"),
|
||||
HealthchecksDuration: time.Duration(env.Int("monitoring.healthchecks.duration", int(defaultConfig.Monitoring.HealthchecksDuration))) * time.Second,
|
||||
},
|
||||
LogLevel: env.String("loglevel", defaultConfig.LogLevel),
|
||||
DB: DB{
|
||||
|
||||
@@ -15,8 +15,9 @@ var defaultConfig = &Config{
|
||||
Dialect: "sqlite3",
|
||||
},
|
||||
Monitoring: Monitoring{
|
||||
SentrySampleRate: 20,
|
||||
HealthechsDuration: 5,
|
||||
SentrySampleRate: 20,
|
||||
HealthchecksURL: "https://hc-ping.com",
|
||||
HealthchecksDuration: 60,
|
||||
},
|
||||
TLS: TLS{
|
||||
Port: "587",
|
||||
|
||||
@@ -68,10 +68,11 @@ type TLS struct {
|
||||
|
||||
// Monitoring config
|
||||
type Monitoring struct {
|
||||
SentryDSN string
|
||||
SentrySampleRate int
|
||||
HealchecksUUID string
|
||||
HealthechsDuration time.Duration
|
||||
SentryDSN string
|
||||
SentrySampleRate int
|
||||
HealthchecksURL string
|
||||
HealthchecksUUID string
|
||||
HealthchecksDuration time.Duration
|
||||
}
|
||||
|
||||
// Mailboxes config
|
||||
|
||||
Reference in New Issue
Block a user