Files
Mdeical_Sur_Report/.env.example

29 lines
1.3 KiB
Plaintext

# 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"
# STORAGE_KEY: AES-GCM encryption key for localStorage systemSettings (max 32 chars used).
# Must be set at build time. Leaving it empty will cause runtime initialization error.
STORAGE_KEY="YourRandom32CharKeyHere!!!"
# DEFAULT_API_KEY: Default AI provider API key, replaces the hardcoded API_KEY_CODES array.
# Must be set at build time.
DEFAULT_API_KEY="your-api-key-here"
# ADMIN_AUTH_HASH: SHA-256 hex hash of (authorization_password + ADMIN_AUTH_SALT).
# Used in UserManage.tsx to verify high-privilege disable operations.
ADMIN_AUTH_HASH="your-sha256-hash-here"
# ADMIN_AUTH_SALT: Salt used when computing the admin authorization SHA-256 hash.
ADMIN_AUTH_SALT="your-random-salt-here"
# LEGACY_STORAGE_KEY: Former XOR encryption key used to auto-migrate old localStorage data.
# Set to the previous hardcoded value if you need backward compatibility.
LEGACY_STORAGE_KEY="MedicalReportSys2024"