added messages templates

This commit is contained in:
onysd 2026-09-01 14:40:06 +03:00
parent e8dc967e6a
commit 7cd1f64d0d
29 changed files with 1266 additions and 84 deletions

View file

@ -40,6 +40,24 @@ TELESRV_PHONE_CODE_LENGTH=5
TELESRV_AUTH_CODE_TTL=5m
# How many wrong guesses are allowed before a code is rejected outright.
TELESRV_AUTH_CODE_MAX_ATTEMPTS=5
# The message sent from the official system account (777000) into a user's
# own chat on every completed sign-in -- a lightweight security notice, not
# the login code itself. {{server_name}} is replaced with the server's
# configured identity name (or product name if unset). Leave empty to use
# the built-in English copy. The admin panel's Server Settings page can
# override these live, without a restart; these env vars are only the
# fallback for when it hasn't been touched.
TELESRV_WELCOME_MESSAGE_PHONE_TEMPLATE=
TELESRV_WELCOME_MESSAGE_EMAIL_TEMPLATE=
# The message sent from the official system account (777000) that carries the
# actual login code -- one template for every delivery channel (SMS or
# email). Must contain the {{code}} placeholder exactly once (that's where
# the real code is inserted and bolded); {{server_name}} is optional and may
# appear any number of times. Leave empty to use the built-in English copy.
# The admin panel's Server Settings page can override this live, without a
# restart (rejecting a save that doesn't contain {{code}} exactly once); this
# env var is only the fallback for when it hasn't been touched.
TELESRV_LOGIN_CODE_MESSAGE_TEMPLATE=
# Where webhook-delivered codes are POSTed, and the shared secret used to
# sign that request (see docs/otp-delivery.md for the exact payload).
TELESRV_OTP_WEBHOOK_URL=