mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-27 01:18:10 -07:00
noirc launch
This commit is contained in:
@@ -369,6 +369,13 @@ type AccountRegistrationConfig struct {
|
||||
Throttling ThrottleConfig
|
||||
// new-style (v2.4 email verification config):
|
||||
EmailVerification email.MailtoConfig `yaml:"email-verification"`
|
||||
// nostr-based account verification, where we send a DM with verification code
|
||||
NostrVerification struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
PrivateKey string `yaml:"private-key"`
|
||||
DefaultRelays []string `yaml:"default-relays"`
|
||||
Timeout time.Duration `yaml:"timeout"`
|
||||
} `yaml:"nostr-verification"`
|
||||
// old-style email verification config, with "callbacks":
|
||||
LegacyEnabledCallbacks []string `yaml:"enabled-callbacks"`
|
||||
LegacyCallbacks struct {
|
||||
@@ -665,6 +672,14 @@ type Config struct {
|
||||
|
||||
Accounts AccountConfig
|
||||
|
||||
NostrVerification struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
PrivateKey string `yaml:"private-key"`
|
||||
DefaultRelays []string `yaml:"default-relays"`
|
||||
Timeout time.Duration `yaml:"timeout"`
|
||||
}
|
||||
|
||||
|
||||
Channels struct {
|
||||
DefaultModes *string `yaml:"default-modes"`
|
||||
defaultModes modes.Modes
|
||||
@@ -1974,3 +1989,14 @@ func normalizeCommandAliases(aliases map[string]string) (normalizedAliases map[s
|
||||
}
|
||||
return normalizedAliases, nil
|
||||
}
|
||||
|
||||
type CloakConfig struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
EnabledForAlwaysOn bool `yaml:"enabled-for-always-on"`
|
||||
Netname string `yaml:"netname"`
|
||||
CidrLenIPv4 int `yaml:"cidr-len-ipv4"`
|
||||
CidrLenIPv6 int `yaml:"cidr-len-ipv6"`
|
||||
NumBits int `yaml:"num-bits"`
|
||||
SecretValue string `yaml:"secret"`
|
||||
NostrHostnames bool `yaml:"nostr-hostnames"` // enable nostr-based hostnames for accounts registered with nostr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user