aboutsummaryrefslogtreecommitdiff
path: root/cmd/generate-config
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-04-29 09:31:11 +0200
committerGitHub <noreply@github.com>2022-04-29 09:31:11 +0200
commit26a1512808282c954a141b3376c47b05ef1e6ab4 (patch)
tree6eacc656dc120186be9505b0b9568ba878ef660b /cmd/generate-config
parent2a5b8e0306a283aa8ca64822d59d71479ffba59a (diff)
Add restrictions for open registration (#2402)
* Add restrications for open registration * Make enable open registration a parameter * Enable registration for CI * Update error message * Shuffle things around a bit * Add a warning at every startup just to be extra annoying * Ignore shared secret when warning about open registration, since it's not strictly required when it is set if registration is otherwise enabled * Make CI happy? * Add missing parameter; try new parameter in upgrade-test Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'cmd/generate-config')
-rw-r--r--cmd/generate-config/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go
index 24085afa..1c585d91 100644
--- a/cmd/generate-config/main.go
+++ b/cmd/generate-config/main.go
@@ -90,6 +90,8 @@ func main() {
cfg.Logging[0].Type = "std"
cfg.UserAPI.BCryptCost = bcrypt.MinCost
cfg.Global.JetStream.InMemory = true
+ cfg.ClientAPI.RegistrationDisabled = false
+ cfg.ClientAPI.OpenRegistrationWithoutVerificationEnabled = true
cfg.ClientAPI.RegistrationSharedSecret = "complement"
cfg.Global.Presence = config.PresenceOptions{
EnableInbound: true,