通用
+名称 这将完全替换 REBUILD 的品牌名称 |
+ REBUILD | +
LOGO | +
+ ![]() ![]() |
+
主页地址 | +http://getrebuild.com/ | +
公开注册 | +否 | +
安全
+登录时需要验证码 | +3次以后 | +
登录密码安全策略 | +简单 | +
REBUILD V1.0.0-SNAPSHOT
+-
+
- 帮助文档 +
- 技术支持 +
- 定制开发与实施部署 +
- View on GitHub +
diff --git a/src/main/java/com/rebuild/server/helper/SystemConfigurer.java b/src/main/java/com/rebuild/server/helper/SystemConfigurer.java index a805dcac9..f601e256d 100644 --- a/src/main/java/com/rebuild/server/helper/SystemConfigurer.java +++ b/src/main/java/com/rebuild/server/helper/SystemConfigurer.java @@ -48,11 +48,12 @@ public class SystemConfigurer { * 系统配置项名称 */ public static enum ItemName { - // 云存储 - StorageURL, StorageApiKey, StorageApiSecret, StorageBucket, - // 临时目录 TempDirectory, + // 云存储 + StorageURL, StorageApiKey, StorageApiSecret, StorageBucket, + // 缓存服务 + CacheHost, CachePort, CacheUser, CachePassword, } private static final Log LOG = LogFactory.getLog(SystemConfigurer.class); @@ -108,6 +109,26 @@ public class SystemConfigurer { return new String[] { key, secret, bucket }; } + public static String[] getCacheAccount() { + String host = getItemFromBoth(ItemName.CacheHost); + if (host == null) { + return null; + } + String port = getItemFromBoth(ItemName.CachePort); + if (port == null) { + return null; + } + String user = getItemFromBoth(ItemName.CacheUser); +// if (user == null) { +// return null; +// } + String password = getItemFromBoth(ItemName.CachePassword); + if (password == null) { + return null; + } + return new String[] { host, port, user, password }; + } + /*- * 从数据库-配置文件获取 */ diff --git a/src/main/webapp/_include/NavLeftAdmin.jsp b/src/main/webapp/_include/NavLeftAdmin.jsp index c51f02aef..fd04bf172 100644 --- a/src/main/webapp/_include/NavLeftAdmin.jsp +++ b/src/main/webapp/_include/NavLeftAdmin.jsp @@ -8,9 +8,11 @@