Files
senmesh-zc/deployment/iw/web/assets/use-upload-config-OxxQwpLm.js
KodouWZF d39b3b035d feat(部署): 新增 deployment/ 内外网两套按侧部署包
按 demo/ 的写法把交付包改成「角色由目录决定」:iw/ 拷内网机、ow/ 拷外网机,
各自含镜像 tar、SQL、配置与 install.sh,install.sh 不再收 iw/ow 参数。

前端不再打进镜像,改为静态包放在 <侧>/web/ 只读挂进 nginx:1.27-alpine,
现场临时改页面直接替换文件 + restart web 即可。数据仍全部挂宿主机,
子目录命名与 deploy/offline 一致(pgdata/redis/mq/upload/logs/gate),
默认根改为包内 ./volumes,放数据盘只改 .env 的 SFILE_DATA_ROOT。

后端镜像 sfile-app:1.0.1 含传输优化那一批(实测组包 11.4×、解包 9.9×)。
出包脚本 deployment/scripts/build-package.sh 负责 jar→镜像→前端双包→sql→tar→VERSION。
2026-11-04 21:44:56 +08:00

1 line
585 B
JavaScript

import{t as e}from"./useQuery-dxbdhNvu.js";import{Yt as t}from"./index-BaTxSAlR.js";const n=()=>t.get(`/upload_config/info`),r=e=>t.post(`/upload_config/modify`,e),i=e=>t.get(`/upload_config/check`,{params:e}),a=()=>e({queryKey:[`uploadConfig`],queryFn:()=>n().then(e=>e==null?void 0:e.data)}),o=e=>{var t;if(!(!e||e.allowAllType||!((t=e.allowedSuffixes)!=null&&t.length)))return e.allowedSuffixes.map(e=>`.${String(e).replace(/^\.+/,``).toLowerCase()}`).join(`,`)},s=e=>{if(e!=null&&e.maxFileSize&&e.maxFileSize>0)return e.maxFileSize*1024*1024};export{r as a,i,s as n,a as r,o as t};