From 8c86e9d32d54b07fd742944319e673ff68219c9f Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Mon, 25 Mar 2024 11:54:14 +0800 Subject: [PATCH] fix: static config directorty --- restagent/etc/restconf.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/restagent/etc/restconf.yaml b/restagent/etc/restconf.yaml index 404f841c..1926c165 100644 --- a/restagent/etc/restconf.yaml +++ b/restagent/etc/restconf.yaml @@ -175,4 +175,15 @@ params: testConfig: enabled: true - file: ./etc/testconfig.yaml \ No newline at end of file + file: ./etc/testconfig.yaml + +# 静态文件配置, 相对项目根路径或填绝对路径 +staticFile: + # 默认资源,dir目录需要预先创建 + default: + prefix: "/static" + dir: "./static" + # 文件上传资源目录映射,与项目目录同级 + upload: + prefix: "/upload" + dir: "./upload"