将域名修改为内网穿透域
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ public class DataSourceMasterConfig {
|
||||
//设置能否重置
|
||||
initParams.put("resetEnable", "false");
|
||||
//deny优先于allow
|
||||
initParams.put("allow", "127.0.0.1,172.17.0.1,www.microfast.com,3z3wg7.natappfree.cc");
|
||||
initParams.put("allow", "127.0.0.1,172.17.0.1,3z3wg7.natappfree.cc,3z3wg7.natappfree.cc");
|
||||
//initParams.put("deny","213.122.232.233");
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("micro-fast common druidServletParam使用默认的配置");
|
||||
|
||||
@@ -13,6 +13,6 @@ spring:
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10002/eureka/,http://micro:fast@www.microfast.com:10004/eureka/ #配置所有的注册中心
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10002/eureka/,http://micro:fast@3z3wg7.natappfree.cc:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
@@ -12,8 +12,8 @@ spring:
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10002/eureka/,http://micro:fast@www.microfast.com:10004/eureka/ #配置所有的注册中心
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10002/eureka/,http://micro:fast@3z3wg7.natappfree.cc:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
appname: config-server
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ spring:
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10002/eureka/,http://micro:fast@www.microfast.com:10004/eureka/ #配置所有的注册中心
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10002/eureka/,http://micro:fast@3z3wg7.natappfree.cc:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
|
||||
|
||||
@@ -22,13 +22,9 @@
|
||||
<artifactId>spring-cloud-starter-config</artifactId>
|
||||
</dependency>
|
||||
<!--注册中心-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.springframework.cloud</groupId>-->
|
||||
<!--<artifactId>spring-cloud-starter-eureka-server</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-eureka-server</artifactId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
|
||||
</dependency>
|
||||
<!--web-->
|
||||
<dependency>
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
uri: http://config:server@www.microfast.com:10000/
|
||||
uri: http://config:server@3z3wg7.natappfree.cc:10000/
|
||||
profile: dev
|
||||
label: master
|
||||
name: eureka-server
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10004/eureka #和其他注册中心连接
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10004/eureka #和其他注册中心连接
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
@@ -24,7 +24,7 @@
|
||||
<!--注册中心-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-eureka-server</artifactId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
|
||||
</dependency>
|
||||
<!--web-->
|
||||
<dependency>
|
||||
|
||||
@@ -4,10 +4,10 @@ spring:
|
||||
name: eureka-server2
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://config:server@www.microfast.com:10000/
|
||||
uri: http://config:server@3z3wg7.natappfree.cc:10000/
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10002/eureka #和其他注册中心连接
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10002/eureka #和其他注册中心连接
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
@@ -13,6 +13,6 @@ spring:
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10002/eureka/,http://micro:fast@www.microfast.com:10004/eureka/ #配置所有的注册中心
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10002/eureka/,http://micro:fast@3z3wg7.natappfree.cc:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
|
||||
@@ -13,7 +13,7 @@ spring:
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://micro:fast@www.microfast.com:10002/eureka/,http://micro:fast@www.microfast.com:10004/eureka/ #配置所有的注册中心
|
||||
defaultZone: http://micro:fast@3z3wg7.natappfree.cc:10002/eureka/,http://micro:fast@3z3wg7.natappfree.cc:10004/eureka/ #配置所有的注册中心
|
||||
instance:
|
||||
hostname: www.microfast.com
|
||||
hostname: 3z3wg7.natappfree.cc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user