@@ -5,12 +5,12 @@ NODE_ENV=development
55
66# Database Configuration (Debian Server)
77# Option 1: Use DATABASE_URL (PostgreSQL connection string)
8- # The api-user is stac_api (read-only) (stac_crawler for crawler-group)
9- DATABASE_URL = postgresql://stac_api:[PASSWORD]@atlas.stacindex.org:5432 /stac_db
8+ # The api-user is stac_api (read-only)
9+ DATABASE_URL = postgresql://stac_api:[PASSWORD]@atlas.stacindex.org:5430 /stac_db
1010
1111# Option 2: Use individual variables (currently active)
1212DB_HOST = atlas.stacindex.org
13- DB_PORT = 5433 # 5432 for production
13+ DB_PORT = 5430 # 5432 for production
1414DB_NAME = stac_db
1515DB_USER = stac_api
1616DB_PASSWORD = # Add stac_api password here (api_password)
@@ -24,8 +24,26 @@ DB_CONNECTION_TIMEOUT=10000
2424
2525# CORS Configuration
2626CORS_ORIGIN = *
27+ CORS_CREDENTIALS = false
28+
29+ # Logging Configuration
30+ LOG_LEVEL = debug
2731
2832# API Configuration
2933API_TITLE = STAC Atlas
3034API_DESCRIPTION = A centralized platform for managing, indexing, and providing STAC Collection metadata
31- API_VERSION = 1.1.0
35+ API_VERSION = 1.0.0
36+
37+ # Request Size Limits
38+ # MAX_URL_LENGTH: Maximum URL length including query parameters (default: 1MB)
39+ # MAX_HEADER_SIZE: Maximum total size of all HTTP headers (default: 100KB)
40+ # MAX_BODY_SIZE: Maximum request body size for POST/PUT (default: 10MB)
41+ # Formats: "100KB", "1MB", "10MB", etc.
42+ MAX_URL_LENGTH = 1MB
43+ MAX_HEADER_SIZE = 100KB
44+ MAX_BODY_SIZE = 10MB
45+
46+ # Rate Limiting Configuration
47+ # Set to "true" to disable rate limiting (useful for load testing)
48+ # WARNING: Never disable rate limiting in production!
49+ DISABLE_RATE_LIMIT = false
0 commit comments