43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
# Database Configuration
|
|
DB_NAME=volontery_db
|
|
DB_USER=volontery
|
|
DB_PASSWORD=change_me_in_production
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_AUTH_METHOD=scram-sha-256
|
|
DB_SSLMODE=disable
|
|
|
|
# Database Connection String
|
|
DATABASE_URL=postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=${DB_SSLMODE}
|
|
|
|
# Application Configuration
|
|
APP_ENV=development
|
|
APP_PORT=8080
|
|
APP_HOST=0.0.0.0
|
|
|
|
# JWT Configuration
|
|
JWT_SECRET=change_me_to_secure_random_string_min_32_chars
|
|
JWT_ACCESS_TOKEN_EXPIRY=15m
|
|
JWT_REFRESH_TOKEN_EXPIRY=7d
|
|
|
|
# OpenStreetMap Nominatim API
|
|
OSM_NOMINATIM_URL=https://nominatim.openstreetmap.org
|
|
OSM_USER_AGENT=VolonteryPlatform/1.0
|
|
|
|
# Matching Algorithm Configuration
|
|
MATCHING_DEFAULT_RADIUS_METERS=10000
|
|
MATCHING_DEFAULT_LIMIT=20
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FORMAT=json
|
|
|
|
# CORS Configuration
|
|
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
|
|
CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,PATCH,OPTIONS
|
|
CORS_ALLOWED_HEADERS=Content-Type,Authorization
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_REQUESTS_PER_MINUTE=60
|
|
RATE_LIMIT_BURST=10
|