文档修改

This commit is contained in:
xion 2025-02-25 11:56:54 +08:00
parent 6a4ff85683
commit e59484e3c7
4 changed files with 15 additions and 6 deletions

View File

@ -1 +1,14 @@
# page proxy
# 部署方案
```sh
envision pack -p -u
envision pack-deploy 330bc5f8-1ae7-4be5-a44c-0ea0b3da184b page-proxy # key和id是人设置的
# 会复制到对应的文件夹里面了,现在。启动时后台启动
# 需要调用类似,但需要token
# token ev token会显示当前登陆的用户的token
# https://kevisual.xiongxiao.me/api/router?path=local-apps&key=updateStatus&appKey=page-proxy&status=start&token=******
```
![alt text](./docs/after-pub-deploy.png)

View File

@ -6,7 +6,7 @@
proxy: {
port: 3005,
domain: 'kevisual.xiongxiao.me',
resources: 'minio.xiongxiao.me/resources',
resources: 'https://minio.xiongxiao.me/resources',
allowedOrigins: ['localhost', 'xiongxiao.me', 'zxj.im', 'silkyai.cn'],
},
}

BIN
docs/after-pub-deploy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -18,10 +18,6 @@
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon --ignore upload --exec tsx src/index.ts",
"build": "rimraf dist && rollup -c",
"deploy:light": "rsync -avz dist/ light:~/apps/var-proxy/backend",
"reload": "ssh light pm2 restart proxy",
"pub:light": "npm run build && npm run deploy && npm run reload",
"demo": "rsync -avz dist/ on:~/docker/page-proxy/dist",
"start": "pm2 start dist/app.mjs --name page-proxy",
"release": "node ./scripts/release/index.mjs",
"deploy": "envision switch root && envision pack -p -u",