feat: sync configurable OTP delivery providers
This commit is contained in:
parent
c18f773701
commit
6af61f26ba
28 changed files with 2100 additions and 118 deletions
16
.env.example
16
.env.example
|
|
@ -44,12 +44,24 @@ TELESRV_MTPROTO_OUTBOUND_TRACKED_GLOBAL_MAX_BYTES=536870912
|
|||
# Concurrent encrypted wire/codec/obfuscation scratch (shared bounded pool, not per connection).
|
||||
TELESRV_MTPROTO_OUTBOUND_WRITE_GLOBAL_MAX_BYTES=536870912
|
||||
|
||||
# Optional login-email verification. When enabled, accounts with a confirmed
|
||||
# login email receive login codes by email; REQUIRE_SETUP also forces new/legacy
|
||||
# OTP delivery routing. "development" preserves the fixed phone code. "webhook"
|
||||
# generates a random SMS code and sends it with the versioned protocol documented
|
||||
# in docs/otp-delivery.md. For an existing account, both modes first create the
|
||||
# durable 777000 message; Webhook is an additional delivery channel for that code.
|
||||
TELESRV_PHONE_CODE_DELIVERY_PROVIDER=development
|
||||
TELESRV_PHONE_CODE_LENGTH=5
|
||||
TELESRV_OTP_WEBHOOK_URL=
|
||||
TELESRV_OTP_WEBHOOK_SECRET=
|
||||
TELESRV_OTP_WEBHOOK_TIMEOUT=5s
|
||||
|
||||
# Optional login-email verification. EMAIL_CODE_DELIVERY_PROVIDER may be smtp
|
||||
# or webhook. Existing-account login codes are also mirrored into 777000 before
|
||||
# provider delivery; setup/change codes are provider-only. REQUIRE_SETUP forces
|
||||
# accounts without a login email to set one during the phone login flow.
|
||||
TELESRV_LOGIN_EMAIL_ENABLE=false
|
||||
TELESRV_LOGIN_EMAIL_REQUIRE_SETUP=false
|
||||
TELESRV_LOGIN_EMAIL_CODE_LENGTH=6
|
||||
TELESRV_EMAIL_CODE_DELIVERY_PROVIDER=smtp
|
||||
TELESRV_SMTP_HOST=
|
||||
TELESRV_SMTP_PORT=587
|
||||
TELESRV_SMTP_USERNAME=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue