Document multi-instance setup, rate limits and the new ad flow

README: new environment variables, ShedLock jobs and the multi-instance
section, rate limits and login lockout, profile privacy and token reissue,
WebSocket fan-out, 429 errors, tests and the updated limitations.
docs/advertising.md: serve -> impression -> click with signed tokens,
per-campaign daily caps, stats endpoint, campaign auto-finish, ads.* settings.
docs/redis.md: all new keys, pub/sub, locks, rate limiting, failure modes.
docs/images-storage.md: uploads outside transactions and orphan cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SlimusMinus
2026-10-20 01:46:18 +03:00
parent 4ff61d8eda
commit ba6935bb1f
5 changed files with 340 additions and 121 deletions

View File

@@ -39,6 +39,16 @@ JWT_SECRET=
# DB_USER=user
# DB_PASSWORD=pass
# CORS_ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
# FORWARD_HEADERS_STRATEGY=native
# RATE_LIMIT_ENABLED=true
# WS_CLUSTER_BROADCAST=true
# GEOCODING_URL=https://nominatim.openstreetmap.org
# GEOCODING_USER_AGENT=ReFound/1.0 (admin@example.com)
# GEOCODING_MIN_INTERVAL=PT1S
# STORAGE_ORPHAN_CLEANUP_ENABLED=true
# ADS_TIMEZONE=Europe/Moscow
# ADS_TRACKING_SECRET=
# ADS_REQUIRE_TRACKING_TOKEN=false
# JWT_ACCESS_EXPIRATION=900000
# JWT_REFRESH_EXPIRATION=604800000
# JPA_DDL_AUTO=validate