feat(identity): register accounts and resend verification mail

This commit is contained in:
shira committed 2026-10-06 23:59:51 +03:00
1 parent 5e202ac972
commit 4436f626a3
55 files changed
+3227 -88

No files matched your search

+13
View File
@@ -68,6 +68,19 @@ PASSWORD_HASH_CONCURRENCY=1
# two together if the range collides with another network or route.
APP_SUBNET=172.29.79.0/24
APP_FRONTEND_IP=172.29.79.10
# Registration. IDENTITY_KEY_SECRET is required: it keys the idempotency
# records and the rate limit counters, so a restart or another instance keeps
# them. At least 32 bytes. There is no usable example value: leave it empty
# here and generate one for every deployment (Compose refuses an empty value):
# openssl rand -base64 48
# A value that starts with replace-this is refused. Without it the backend refuses to start, unless a development stand sets
# IDENTITY_ALLOW_EPHEMERAL_KEY=true (a random secret per process).
IDENTITY_KEY_SECRET=
# The limits count the registration and every verification resend per address.
VERIFICATION_MAIL_MIN_INTERVAL=1m
VERIFICATION_MAIL_DAILY_LIMIT=5
IDENTITY_CLIENT_HOURLY_LIMIT=30
# Reverse proxies the backend trusts to report the client address in
# X-Forwarded-For. Leave it unset: the default is the frontend container's
# APP_FRONTEND_IP as a single address. A wider list lets other containers (or a