-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.env
More file actions
59 lines (50 loc) · 2.05 KB
/
Copy pathexample.env
File metadata and controls
59 lines (50 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
POSTGRES_DB=cars_db
POSTGRES_USER=user
POSTGRES_PASSWORD=Passw0rd
POSTGRES_PORT=5252
POSTGRES_TEST_DB=cars_test_db
# Example of setting migration version, if not set - all migrations are appies
#MIGRATION_VERSION=7
# Note: port and host are hardcoded due in-compose routing
DATABASE_HOST_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432"
DATABASE_URL="${DATABASE_HOST_URL}/${POSTGRES_DB}?sslmode=disable"
GEOAPIFY_API_KEY=your_geoapify_key
PUBLIC_ROUTING_USER_ID=1
ROUTING_SEARCH_BUDGET_SECONDS=1.8
ROUTING_PROVIDER_CONNECT_TIMEOUT_SECONDS=0.25
ROUTING_PROVIDER_READ_TIMEOUT_SECONDS=0.9
ROUTING_PROVIDER_MAX_ESTIMATED_MATRIX_DISTANCE_METERS=280000000
ROUTING_MAX_MATRIX_TARGETS=32
ROUTING_ROAD_DETOUR_FACTOR=1.25
ROUTING_AVERAGE_DRIVING_SPEED_KPH=30
# Super token for trusted services. Send it as Authorization: Bearer ${API_TOKEN}.
#API_TOKEN=change-me
# Encrypted detection artifacts in S3 (PTSNAP01 / AES-256-GCM)
SNAPSHOT_S3_BUCKET=parktrack-snapshots
SNAPSHOT_S3_PREFIX=camera-snapshots
SNAPSHOT_ENCRYPTION_KEY_ID=snapshot-key-2026-01
SNAPSHOT_ENCRYPTION_KEY_BASE64=replace-with-base64-encoded-32-byte-key
# JSON object with old key IDs and Base64 keys kept during key rotation.
#SNAPSHOT_DECRYPTION_KEYS_JSON={"snapshot-key-2025-01":"base64-key"}
#SNAPSHOT_S3_ENDPOINT_URL=https://s3.example.com
#SNAPSHOT_S3_REGION=ru-central1
#SNAPSHOT_MAX_OBJECT_SIZE_BYTES=26214400
# boto3 also supports IAM roles and the standard AWS credential chain.
# The API identity must have s3:GetObject for SNAPSHOT_S3_PREFIX.
#AWS_ACCESS_KEY_ID=replace-me
#AWS_SECRET_ACCESS_KEY=replace-me
#AWS_SESSION_TOKEN=replace-me
# Password reset
# If SMTP_HOST is set, reset tokens are sent by email.
# Without SMTP, the API returns reset_token by default for local testing.
PASSWORD_RESET_LOGIN_URL="http://localhost:5173/#/password-reset"
PASSWORD_RESET_TTL_MINUTES=30
PASSWORD_RESET_RETURN_TOKEN=0
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=parktrack@example.com
SMTP_PASSWORD=secret
SMTP_FROM_EMAIL=parktrack@example.com
SMTP_FROM_NAME=ParkTrack
SMTP_USE_TLS=1
SMTP_USE_SSL=0