Files
Gemini_Draw/.env.example
2026-05-09 17:13:53 +08:00

29 lines
1008 B
Plaintext

# APP_PASSWORD: Simple password for app access. Default: 123456
APP_PASSWORD="123456"
# GEMINI_API_KEY: Required for Gemini AI API calls.
# AI Studio automatically injects this at runtime from user secrets.
# Users configure this via the Secrets panel in the AI Studio UI.
GEMINI_API_KEY="MY_GEMINI_API_KEY"
# APP_URL: The URL where this applet is hosted.
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
# Used for self-referential links, OAuth callbacks, and API endpoints.
APP_URL="MY_APP_URL"
# API_PORT: HTTP API server port. Frontend still runs on 3000 by default.
API_PORT="3002"
# API_AUTH_TOKEN: Optional token for API calls. Leave empty to disable auth.
# When set, send Authorization: Bearer <token> or x-api-key: <token>.
API_AUTH_TOKEN=""
# Gemini model defaults used by the API service.
GEMINI_IMAGE_MODEL="gemini-3.1-flash-image-preview"
GEMINI_TEXT_MODEL="gemini-2.5-flash"
# Upload limits.
API_MAX_FILE_MB="25"
API_MAX_FILES="20"
API_JSON_LIMIT="50mb"