# 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