Skip to content

Commit

Permalink
🏔 add static plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 26, 2017
1 parent 6b5ac0f commit f2b1f28
Show file tree
Hide file tree
Showing 85 changed files with 23,947 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/tale/init/WebContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public void processor(Blade blade) {

JetGlobalContext context = templateEngine.getGlobalContext();
context.set("version", environment.get("app.version", "v1.0"));
context.set("enableCdn", environment.getBoolean("app.enableCdn", true));
context.set("enableCdn", environment.getBoolean("app.enableCdn", false));

blade.templateEngine(templateEngine);

TaleConst.ENABLED_CDN = environment.getBoolean("app.enableCdn", true);
TaleConst.ENABLED_CDN = environment.getBoolean("app.enableCdn", false);
TaleConst.MAX_FILE_SIZE = environment.getInt("app.max-file-size", 20480);

TaleConst.AES_SALT = environment.get("app.salt", "012c456789abcdef");
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/app.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
app.name=Tale (\u584c\u4e86)
#app.max-file-size=20480
app.devMode=true
app.enableCdn=true
mvc.view.404=/comm/error_404.html
mvc.view.500=/comm/error_500.html
mvc.statics=/upload
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f2b1f28

Please sign in to comment.