# Django
SECRET_KEY=your-secret-key-change-in-production
DEBUG=1
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0,web
DEVELOP=true
# Database (MySQL)
DB_ENGINE=django.db.backends.mysql
DB_NAME=croplogic
DB_USER=croplogic
DB_PASSWORD=changeme
DB_ROOT_PASSWORD=root
DB_HOST=db
DB_PORT=3306

AVALAI_API_KEY=aa-iDlMpRAfRyd95pCQxr5YXfJoJmw4qCDe6fnozQ4PlkpYF0pA
AVALAI_BASE_URL=https://api.avalai.ir/v1

# GapGPT API (provider اصلی)
GAPGPT_API_KEY=sk-ZeFmDwROcQ2rYOFmUxHLjIwMTSUdo2qNc3Uraug9dOK2ihn5
GAPGPT_BASE_URL=https://api.gapgpt.app/v1

# Weather API (OpenWeather One Call 3.0)
WEATHER_API_BASE_URL=https://api.openweathermap.org/data/3.0/onecall
WEATHER_API_KEY=
WEATHER_PROXY_URL=socks5h://host.docker.internal:10808


# Soil data provider: soilgrids | mock
SOIL_DATA_PROVIDER=soilgrids
SOIL_MOCK_DELAY_SECONDS=0.8
SOILGRIDS_TIMEOUT_SECONDS=60

WEATHER_DATA_PROVIDER=openweather
WEATHER_MOCK_DELAY_SECONDS=0.8
WEATHER_TIMEOUT_SECONDS=60

# Optional: route all outbound app traffic through proxychains inside containers
ENABLE_PROXYCHAINS=0
PROXYCHAINS_PROXY_TYPE=socks4
PROXYCHAINS_PROXY_HOST=host.docker.internal
PROXYCHAINS_PROXY_PORT=10808
PROXYCHAINS_CHAIN_MODE=strict_chain

# openEO remote sensing auth
OPENEO_BACKEND_URL=https://openeofed.dataspace.copernicus.eu
OPENEO_TIMEOUT_SECONDS=600
OPENEO_HTTP_RETRY_TOTAL=5
OPENEO_HTTP_RETRY_BACKOFF_FACTOR=2.0
# Use `password` when filling OPENEO_USERNAME/OPENEO_PASSWORD instead of client credentials.
OPENEO_AUTH_METHOD=client_credentials
OPENEO_AUTH_CLIENT_ID=
OPENEO_AUTH_CLIENT_SECRET=
OPENEO_AUTH_PROVIDER_ID=
OPENEO_USERNAME=
OPENEO_PASSWORD=
OPENEO_ALLOW_INTERACTIVE_OIDC=0
OPENEO_PROXY_URL=socks5h://host.docker.internal:10808
