docs(README): 更新项目部署文档添加完整部署指南
更新 README.md 文件,提供详细的单机部署指南,包括: - 完整的服务架构说明和请求链路图解 - 环境变量配置说明和示例 - 逐步部署流程(镜像构建、网络创建、服务启动) - 健康检查和首次注册验收步骤 - 常见问题解答 同时更新各个子模块的 README 添加环境变量示例文件引用
This commit is contained in:
28
deploy-control/.env.example
Normal file
28
deploy-control/.env.example
Normal file
@ -0,0 +1,28 @@
|
||||
# deploy-control runtime config
|
||||
|
||||
DEPLOY_CONTROL_HOST=0.0.0.0
|
||||
DEPLOY_CONTROL_PORT=8090
|
||||
DEPLOY_CONTROL_API_TOKEN=change-me
|
||||
|
||||
APP_INSTANCE_IMAGE=nano/app-instance:latest
|
||||
APP_INSTANCE_NETWORK_NAME=nano-instance-edge
|
||||
|
||||
APP_INSTANCE_PROVIDER=openai
|
||||
APP_INSTANCE_MODEL=openai/gpt-5
|
||||
APP_INSTANCE_API_KEY=sk-xxxxxxxx
|
||||
APP_INSTANCE_API_BASE=
|
||||
|
||||
# Used as a fallback when authz-service does not explicitly pass authz_base_url.
|
||||
DEFAULT_AUTHZ_BASE_URL=http://nano-authz-service:19090
|
||||
|
||||
DEPLOY_PUBLIC_SCHEME=http
|
||||
DEPLOY_PUBLIC_BASE_DOMAIN=203.0.113.10.nip.io
|
||||
DEPLOY_PUBLIC_HOST_TEMPLATE={slug}.{base_domain}
|
||||
DEPLOY_PUBLIC_PORT=8088
|
||||
DEPLOY_AUTO_START_PROXY=1
|
||||
DEPLOY_HEALTH_TIMEOUT_SECONDS=60
|
||||
DEPLOY_HEALTH_INTERVAL_SECONDS=1
|
||||
|
||||
# Passed through to create-instance.sh when the app-instance image is rebuilt.
|
||||
AUTH_PORTAL_URL=http://203.0.113.10:3081
|
||||
AUTH_PORTAL_PORT=3081
|
||||
Reference in New Issue
Block a user