server api时间戳检查开关
This commit is contained in:
@@ -100,6 +100,8 @@ public final class BrokerConstants {
|
||||
public static final String HZ_Cluster_Node_External_Short_Port = "node_external_short_port";
|
||||
public static final String HZ_Cluster_Node_ID = "node_id";
|
||||
public static final String HTTP_SERVER_SECRET_KEY = "http.admin.secret_key";
|
||||
public static final String HTTP_SERVER_API_NO_CHECK_TIME = "http.admin.no_check_time";
|
||||
|
||||
public static final String CLIENT_PROTO_SECRET_KEY = "client.proto.secret_key";
|
||||
public static final String TOKEN_SECRET_KEY = "token.key ";
|
||||
|
||||
|
||||
@@ -112,6 +112,8 @@ public class Server {
|
||||
int httpAdminPort = Integer.parseInt(config.getProperty(BrokerConstants.HTTP_ADMIN_PORT));
|
||||
|
||||
AdminAction.setSecretKey(config.getProperty(HTTP_SERVER_SECRET_KEY));
|
||||
AdminAction.setNoCheckTime(config.getProperty(HTTP_SERVER_API_NO_CHECK_TIME));
|
||||
|
||||
final LoServer httpServer = new LoServer(httpLocalPort, httpAdminPort, instance.m_processor.getMessagesStore(), instance.m_store.sessionsStore());
|
||||
try {
|
||||
httpServer.start();
|
||||
|
||||
Reference in New Issue
Block a user