Files
Gemini_Draw/.env.example
2026-05-09 17:39:18 +08:00

35 lines
1.2 KiB
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: Required token for protected API calls.
# Send it as Authorization: Bearer <token> or x-api-key: <token>.
API_AUTH_TOKEN="CHANGE_ME_TO_A_LONG_RANDOM_TOKEN"
# API_AUTH_DISABLED: Only set this to true for local-only development.
API_AUTH_DISABLED="false"
# API callers can also send a temporary Gemini key per request with:
# x-gemini-api-key: <Gemini API Key>
# 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"