[Agent][Deploy] - sz ga
This commit is contained in:
@@ -62,6 +62,11 @@ public class AcceptAgentInitInfo {
|
||||
12);
|
||||
put("Xiamen",
|
||||
13);
|
||||
put("Shenzhen",
|
||||
14);
|
||||
|
||||
put("Local",
|
||||
15);
|
||||
|
||||
}};
|
||||
|
||||
@@ -246,8 +251,14 @@ public class AcceptAgentInitInfo {
|
||||
" ",
|
||||
""
|
||||
);
|
||||
if (serverName.startsWith("-")) {
|
||||
// empty city situation
|
||||
serverName = "Local" + serverName;
|
||||
}
|
||||
|
||||
serverInfoVO.setServerName(serverName);
|
||||
|
||||
|
||||
// validate serverName
|
||||
String[] split = serverName.split("-");
|
||||
if (split.length <= 2 || !ALL_SERVER_CITY_INDEX.containsKey(split[0]) || !ALL_SERVER_ARCH_INFO.contains(split[1])) {
|
||||
|
||||
@@ -9,7 +9,7 @@ spring:
|
||||
allow-circular-references: true
|
||||
allow-bean-definition-overriding: true
|
||||
rabbitmq:
|
||||
host: 42.192.52.227
|
||||
host: 172.28.0.10
|
||||
port: 20672
|
||||
username: boge
|
||||
password: boge8tingH
|
||||
@@ -24,7 +24,7 @@ spring:
|
||||
max-interval: 65000
|
||||
initial-interval: 2000
|
||||
redis:
|
||||
host: 42.192.52.227
|
||||
host: 172.28.0.10
|
||||
port: 21370
|
||||
database: 0
|
||||
password: boge8tingH
|
||||
@@ -46,7 +46,7 @@ spring:
|
||||
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://42.192.52.227:21306/octopus_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://172.28.0.10:21306/octopus_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||
username: boge
|
||||
password: boge8tingH
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
|
||||
Reference in New Issue
Block a user