Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Homeserver url
Homeserver string
// Login is a MXID localpart (buscarron - OK, @buscarron:example.com - wrong)
Login string
// Password for login/password auth only
Password string
// LogLevel for logger
LogLevel string
// NoEncryption disables encryption
NoEncryption bool
// Port of the web server
Port string
// Metrics config
Metrics echobasicauth.Auth
// Redmine config
Redmine Redmine
// Forms map
Forms map[string]*Form
// Spamlist with wildcards
Spamlist []string
// Ban config
Ban *Ban
// PSD config
PSD PSD
// DB config
DB DB
// Sentry DSN
Sentry string
// Healthchecks.io config
Healthchecks Healthchecks
// Postmark config
Postmark *Postmark
// SMTP config
SMTP *SMTP
}
Config of Buscarron
type Confirmation ¶
type Confirmation struct {
// Subject of the confirmation email
Subject string
// Body of the confirmation email
Body string
}
Confirmation email config
type DB ¶
type DB struct {
// DSN is a database connection string
DSN string
// Dialect of the db, allowed values: postgres, sqlite3
Dialect string
}
DB config
type Form ¶
type Form struct {
// Name of the form
Name string
// Redirect is an url to redirect after submission
Redirect string
// RejectRedirect is an url to redirect after a rejected submission (both rate limit and spam)
RejectRedirect string
// RoomID to send submission
RoomID id.RoomID
// Ratelimit config
Ratelimit string
RatelimitShared bool
// HasDomain enforces "domain" field check
HasDomain bool
// HasEmail enforces "email" field check
HasEmail bool
// Text template
Text string
// Confirmation email config
Confirmation Confirmation
// Extensions list
Extensions []string
}
Form config
Click to show internal directories.
Click to hide internal directories.