Проверка и завершение требований уровней «3» и «4»

This commit is contained in:
Grbisba
2026-11-06 13:58:50 +03:00
parent 711754bbcd
commit 08ee3fe0b8
30 changed files with 1752 additions and 92 deletions
+8 -4
View File
@@ -1,5 +1,5 @@
# Copy to .env and replace both password placeholders for a local synthetic stand.
# Never commit .env. Existing .env files must be updated manually; see infra/README.md.
# Never commit .env. Existing .env files must be updated manually; see REPORT.md.
HOST_PORT=8080
APP_ENABLED=true
@@ -17,7 +17,7 @@ APPLICATION_REQUEST_RATE_LIMIT=100
APPLICATION_BURST_RATE_LIMIT=100
APPLICATION_RATE_LIMIT_TTL=1m
# Compose fixes container addresses and ports to the service names below.
# Container addresses and ports for the Compose network.
# These ports are not published on the host.
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
@@ -25,9 +25,11 @@ POSTGRES_USER=messenger
POSTGRES_PASSWORD=replace-with-local-postgres-password
POSTGRES_DATABASE=messenger
POSTGRES_VERSION_TABLE=versions
# The Go runner is not implemented; postgres bootstraps a new volume instead.
POSTGRES_RUN_MIGRATIONS=false
# Tern applies embedded migrations at API startup.
POSTGRES_RUN_MIGRATIONS=true
POSTGRES_MAX_CONNECTIONS=10
POSTGRES_CONNECT_TIMEOUT=500ms
POSTGRES_QUERY_TIMEOUT=2s
REDIS_HOST=redis
REDIS_PORT=6379
@@ -35,7 +37,9 @@ REDIS_USERNAME=default
REDIS_PASSWORD=replace-with-local-redis-password
REDIS_DB=0
SESSION_TTL_SECONDS=3600
JWT_ACCESS_TOKEN_LIFETIME=15m
# Legacy fallback used only when SESSION_TTL_SECONDS is empty.
JWT_REFRESH_TOKEN_LIFETIME=24h
# Container paths. Compose mounts ./certs read-only at /run/certs.
JWT_PUBLIC_KEY_PATH=/run/certs/public_key.pem