add project setup
This commit is contained in:
62
.env.example
Normal file
62
.env.example
Normal file
@@ -0,0 +1,62 @@
|
||||
# --- General ---
|
||||
OPENLANE_HEADLESS=true
|
||||
OPENLANE_LOG_LEVEL=INFO
|
||||
OPENLANE_TIMEOUT_MS=45000
|
||||
|
||||
# --- OpenLane Auth & API ---
|
||||
OPENLANE_USERNAME=
|
||||
OPENLANE_PASSWORD=
|
||||
OPENLANE_SIGN_IN_URL=https://app.openlane.com/sign_in
|
||||
OPENLANE_SEARCH_URL=https://app.openlane.com/search?tab=marketplace
|
||||
OPENLANE_API_SEARCH_URL=https://app.openlane.com/api/v4/search
|
||||
OPENLANE_SOURCE_TAB=marketplace
|
||||
OPENLANE_SALE_TYPES=marketplace
|
||||
OPENLANE_PAGE_SIZE=30
|
||||
OPENLANE_MAX_PAGES=512
|
||||
OPENLANE_MAX_CARS_LIMIT=20
|
||||
OPENLANE_THROTTLE_MIN_SECONDS=0.3
|
||||
OPENLANE_THROTTLE_MAX_SECONDS=0.8
|
||||
OPENLANE_RETRY_SCHEDULE_SECONDS=2,5,10
|
||||
OPENLANE_REQUEST_TIMEOUT_MS=45000
|
||||
OPENLANE_REFRESH_TOKEN=
|
||||
OPENLANE_OKTA_CLIENT_ID=
|
||||
OPENLANE_OKTA_TOKEN_ENDPOINT=https://okta.iam.karglobal.com/oauth2/default/v1/token
|
||||
OPENLANE_OKTA_REDIRECT_URI=https://app.openlane.com/sign_in
|
||||
OPENLANE_OKTA_TIMEOUT_SECONDS=15
|
||||
|
||||
# --- Output & State ---
|
||||
OPENLANE_OUTPUT_DIR=artifacts/openlane
|
||||
OPENLANE_JSONL_OUTPUT=artifacts/openlane/openlane_search.jsonl
|
||||
OPENLANE_AGGREGATED_OUTPUT=artifacts/openlane/openlane_search_aggregated.json
|
||||
OPENLANE_CHECKPOINT_FILE=artifacts/openlane/openlane_checkpoint.json
|
||||
OPENLANE_STORAGE_STATE_FILE=/data/openlane/openlane_storage_state.json
|
||||
OPENLANE_PERSIST_STORAGE_STATE=true
|
||||
|
||||
# --- Database (PostgreSQL) ---
|
||||
OPENLANE_DATABASE_URL=postgresql+psycopg2://openlane:openlane@postgres:5432/openlane_scraper
|
||||
OPENLANE_DATABASE_ECHO=false
|
||||
OPENLANE_DATABASE_POOL_SIZE=5
|
||||
OPENLANE_DATABASE_MAX_OVERFLOW=5
|
||||
|
||||
# --- Redis ---
|
||||
OPENLANE_REDIS_URL=redis://redis:6379/0
|
||||
|
||||
# --- Celery ---
|
||||
CELERY_BROKER_URL=redis://redis:6379/0
|
||||
CELERY_RESULT_BACKEND=redis://redis:6379/0
|
||||
CELERY_TASK_SOFT_TIME_LIMIT=86400
|
||||
CELERY_TASK_TIME_LIMIT=86520
|
||||
CELERY_BROKER_VISIBILITY_TIMEOUT=90000
|
||||
CELERY_WORKER_CONCURRENCY=1
|
||||
CELERY_BEAT_SYNC_INTERVAL_MINUTES=60
|
||||
CELERY_BEAT_SYNC_LIMIT=0
|
||||
|
||||
# --- Docker host ports (override if occupied) ---
|
||||
OPENLANE_API_PORT=58000
|
||||
OPENLANE_POSTGRES_PORT=55432
|
||||
OPENLANE_REDIS_PORT=56379
|
||||
|
||||
# --- Proxy (optional) ---
|
||||
# OPENLANE_PROXY_SERVER=http://127.0.0.1:8899
|
||||
# OPENLANE_PROXY_USERNAME=
|
||||
# OPENLANE_PROXY_PASSWORD=
|
||||
Reference in New Issue
Block a user