feat: allow production provider bootstrap

This commit is contained in:
inman
2026-08-18 00:36:05 +08:00
parent 6480e503eb
commit 22fc7a56d8
21 changed files with 192 additions and 18 deletions

View File

@@ -14,6 +14,9 @@ data:
ZHINIAN_AUTH_COOKIE_SECURE: "true"
ZHINIAN_PUBLIC_BASE_URL: https://REPLACE_WITH_PUBLIC_HOST
ZHINIAN_GO_EMBEDDED_WORKER: "true"
# Temporary bootstrap switch only. Keep false for steady-state production;
# when true, unconfigured provider requests return 503 until restart.
ZHINIAN_ALLOW_UNCONFIGURED_PROVIDERS: "false"
ZHINIAN_RUNTIME_DIR: /var/lib/zhinian/runtime
ZHINIAN_LOG_DIR: /var/lib/zhinian/logs
ZHINIAN_SETTINGS_FILE: /var/lib/zhinian/settings.env

View File

@@ -29,8 +29,10 @@ metadata:
namespace: zhinian
type: Opaque
stringData:
# The Go API refuses to start in PostgreSQL production mode when any of the
# four selectable real providers is missing its credentials.
# In steady-state production the Go API expects all four selectable real
# providers to be configured. For a temporary bootstrap, set
# ZHINIAN_ALLOW_UNCONFIGURED_PROVIDERS=true in the Go runtime ConfigMap;
# requests for an unconfigured provider will still return 503 until restart.
VOLCENGINE_ACCESS_KEY_ID: REPLACE_WITH_VOLCENGINE_ACCESS_KEY_ID
VOLCENGINE_SECRET_ACCESS_KEY: REPLACE_WITH_VOLCENGINE_SECRET_ACCESS_KEY
EVOLINK_API_KEY: REPLACE_WITH_EVOLINK_API_KEY