|
|
há 4 dias atrás | |
|---|---|---|
| .. | ||
| README.md | há 4 dias atrás | |
| nginx.example.conf | há 4 dias atrás | |
backend/config.example.json → backend/config.json 并填真实值。backend/src/relay/relay-config.ts,将 sk-TARGET_RELAY_SK 换成公司发放的实例 sk。/parse 与 api/routes.ts → /api)。GET /healthGET /api/sorftime/healthGET /api/tikhub/healthfrontend/src/assets/runtime-config.json:
parse.appId / parse.serverUrlapiBaseUrl(生产可空字符串走同源反代)npm ci && npm run build(或项目既有 build:prod)dist/ 发布到静态目录。见 nginx.example.conf:
/ → frontend dist
/api/* → backend
/parse/* → backend Parse
/health → backend
浏览器不得直连 server.fmode.cn 的上游 Token 接口;AI nova 如需公司 parse,仅用登录后 session,不写死 token。
curl -s https://TARGET_HOST/health
curl -s https://TARGET_HOST/api/sorftime/health
curl -s https://TARGET_HOST/api/tikhub/health
curl -s https://TARGET_HOST/api/ping
保留上一版: