made maxFileSize in FileUploadController configurable

This commit is contained in:
Shenghan Gao
2017-05-27 23:57:31 -07:00
parent 43c8518a40
commit 12857ae6a3
3 changed files with 12 additions and 1 deletions

View File

@@ -39,6 +39,9 @@ public class JettyLauncher {
contextPath = "/" + contextPath;
}
break;
case "--max_file_size":
System.setProperty("gitbucket.maxFileSize", dim[2]);
break;
case "--gitbucket.home":
System.setProperty("gitbucket.home", dim[1]);
break;