Grok2Api / .env.example
github-actions[bot]
Deploy HF adapter from 81228e7b28a9d511f79b2f59b1c00ef60bcc9374
34d56f8
Raw
History Blame Contribute Delete
594 Bytes
# Hugging Face Space runtime example for official Go Grok2API
#
# 用法:
# 1. 写入 HF Storage:/data/config.yaml(推荐)
# 2. 或用下面环境变量在首次启动时注入密钥
# 3. 不要把真实密钥提交到 Git
DATA_DIR=/data
SERVER_PORT=7860
GROK2API_CONFIG_SOURCE=/data/config.yaml
# 首次 seed 配置时可选注入(之后以 /data/config.yaml 为准)
# GROK2API_JWT_SECRET= # openssl rand -hex 32
# GROK2API_CREDENTIAL_ENCRYPTION_KEY= # openssl rand -base64 32
# GROK2API_ADMIN_USERNAME=admin
# GROK2API_ADMIN_PASSWORD=replace_me
# GROK2API_SECURE_COOKIES=true