Skip to content

Commit

Permalink
update: 支持 jetty.staticPath 配置项,可选用nginx配置upload虚拟目录
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed May 9, 2018
1 parent 3eb9db8 commit 582549e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void init() {
dao.insert(conf);
conf = new Sys_config();
conf.setConfigKey("AppUploadPath");
conf.setConfigValue("D://upload");
conf.setConfigValue("D://files/upload");
conf.setNote("文件上传文件夹");
dao.insert(conf);
conf = new Sys_config();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Globals {
//项目域名
public static String AppDomain = "http://127.0.0.1";
//文件上传路径
public static String AppUploadPath = "D://upload";
public static String AppUploadPath = "D://files/upload";
//文件上传路径
public static String AppUploadBase = "/upload";
// 是否启用了队列
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jetty.threadpool.minThreads=4
jetty.threadpool.maxThreads=8
jetty.page.403=/error/403.html
jetty.page.404=/error/404.html
#可选用nginx配置 upload 虚拟目录指向 D://files/upload
jetty.staticPath=D://files

redis.host=127.0.0.1
redis.port=6379
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jetty.threadpool.minThreads=4
jetty.threadpool.maxThreads=8
jetty.page.403=/error/403.html
jetty.page.404=/error/404.html
#可选用nginx配置 upload 虚拟目录指向 D://files/upload
jetty.staticPath=D://files

redis.host=127.0.0.1
redis.port=6379
Expand Down

0 comments on commit 582549e

Please sign in to comment.