Files
Jyotisha/.env.cn.example
T

29 lines
1.2 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Mainland China VedAstro Gateway mode.
# Copy to .env.local on the backend host. Do not expose secrets in the browser.
VEDASTRO_GATEWAY_MODE=cn_gateway
VEDASTRO_SELF_HOST_ENDPOINT=https://your-domain.example.com/vedastro
# Optional official upstream. Keep it backend-only.
# VEDASTRO_API_ENDPOINT=https://api.vedastro.org/api
# VEDASTRO_API_KEY=
# VEDASTRO_ENABLE_NETWORK=0
# Cache / TTL. 网关离线排队与免费层限流是两件事,见下面两组变量。
# 失败结果另有短 TTL(VEDASTRO_OFFICIAL_FULL_SNAPSHOT_NEGATIVE_TTL_SECONDS,默认 300 秒,且不超过成功 TTL)。
# 这些缓存含出生资料,7 天为上限。
VEDASTRO_CACHE_TTL_SECONDS=604800
VEDASTRO_OFFICIAL_FULL_SNAPSHOT_CACHE_TTL_SECONDS=604800
# 网关离线排队作业。这不是免费层限流开关。
VEDASTRO_GATEWAY_QUEUE_ENABLED=1
# 免费层限流由 API key 与下面两项决定。没有 key、且两项都大于 0 时,官方公共端点会限流。
# VEDASTRO_FREE_TIER_QUEUE 已废弃,设置它不会打开或关闭限流。
# VEDASTRO_FREE_TIER_MAX_REQUESTS=5
# VEDASTRO_FREE_TIER_WINDOW_SECONDS=60
# VEDASTRO_FREE_TIER_WAIT_BUDGET_SECONDS=
VEDASTRO_FAIL_OPEN_LOCAL=1
# Runtime guardrails.
VEDASTRO_TIMEOUT_SECONDS=20
VEDASTRO_FULL_CATALOG_SAMPLE_LIMIT=0