@@ -89,4 +89,29 @@
</resource>
</resources>
</build>
+
+ <!-- 环境 -->
+ <profiles>
+ <!-- 开发 -->
+ <profile>
+ <id>dev-bak</id>
+ <properties>
+ <activatedProperties>dev-bak</activatedProperties>
+ </properties>
+ </profile>
+ <!-- 测试 -->
+ <id>test</id>
+ <activatedProperties>test</activatedProperties>
+ <!-- 生产 -->
+ <id>prod</id>
+ <activatedProperties>prod</activatedProperties>
+ </profiles>
</project>
@@ -0,0 +1,48 @@
+spring:
+ cloud:
+ nacos:
+ config:
+ password:
+ username:
+ discovery:
+ server-addr: 172.30.0.7:8848
+ service: jeecg-gateway
+ namespace:
+ gateway:
+ locator:
+ enabled: true
+ globalcors:
+ cors-configurations:
+ '[/**]':
+ allowCredentials: true
+ allowedOrigins: "*"
+ allowedMethods: "*"
+ allowedHeaders: "*"
+ routes:
+ - id: jeecg-system
+# uri: http://localhost:7001
+ uri: lb://jeecg-system
+ predicates:
+ - Path=/jeecg-boot/**
+ - id: jeecg-bytedance-ad
+ uri: lb://jeecg-bytedance-ad
+ - Path=/bytedance/ad/**
+# hystrix 信号量隔离,3秒后自动超时
+hystrix:
+ shareSecurityContext: true
+ command:
+ default:
+ execution:
+ isolation:
+ strategy: SEMAPHORE
+ thread:
+ timeoutInMilliseconds: 3000
+jeecg:
+ route:
+ data-id: mate-gateway-router
+ group: DEFAULT_GROUP
+ data-type: yml
@@ -3,50 +3,5 @@ server:
spring:
application:
name: jeecg-gateway
- cloud:
- nacos:
- config:
- password:
- username:
- discovery:
- server-addr: 127.0.0.1:8848
- service: jeecg-gateway
- namespace:
- gateway:
- locator:
- enabled: true
- globalcors:
- cors-configurations:
- '[/**]':
- allowCredentials: true
- allowedOrigins: "*"
- allowedMethods: "*"
- allowedHeaders: "*"
- routes:
- - id: jeecg-system
-# uri: http://localhost:7001
- uri: lb://jeecg-system
- predicates:
- - Path=/jeecg-boot/**
- - id: jeecg-bytedance-ad
- uri: lb://jeecg-bytedance-ad
- - Path=/bytedance/ad/**
-# hystrix 信号量隔离,3秒后自动超时
-hystrix:
- shareSecurityContext: true
- command:
- default:
- execution:
- isolation:
- strategy: SEMAPHORE
- thread:
- timeoutInMilliseconds: 3000
-jeecg:
- route:
- data-id: mate-gateway-router
- group: DEFAULT_GROUP
- data-type: yml
+ profiles:
+ active: @activatedProperties@
@@ -70,4 +70,28 @@
</plugins>
@@ -0,0 +1,46 @@
+ datasource:
+ platform: mysql
+db:
+ num: 1
+ '0': hcst@2021
+ url:
+ '0': jdbc:mysql://139.186.27.96:4000/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
+ user:
+ '0': data
+management:
+ metrics:
+ export:
+ elastic:
+ enabled: false
+ influx:
+nacos:
+ core:
+ auth:
+ caching:
+ token:
+ expire:
+ seconds: 18000
+ secret:
+ key: SecretKey012345678901234567890123456789012345678901234567890123456789
+ system:
+ type: nacos
+ istio:
+ mcp:
+ server:
+ naming:
+ empty-service:
+ auto-clean: true
+ clean:
+ initial-delay-ms: 50000
+ period-time-ms: 30000
+ security:
+ ignore:
+ urls: /,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
+ standalone: true
@@ -8,48 +8,7 @@ server:
pattern: '%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i'
basedir: ''
- datasource:
- platform: mysql
-db:
- num: 1
- '0': hcst@2021
- url:
- '0': jdbc:mysql://139.186.27.96:4000/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
- user:
- '0': data
-management:
- metrics:
- export:
- elastic:
- enabled: false
- influx:
-nacos:
- core:
- auth:
- caching:
- token:
- expire:
- seconds: 18000
- secret:
- key: SecretKey012345678901234567890123456789012345678901234567890123456789
- system:
- type: nacos
- istio:
- mcp:
- server:
- naming:
- empty-service:
- auto-clean: true
- clean:
- initial-delay-ms: 50000
- period-time-ms: 30000
- security:
- ignore:
- urls: /,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
- standalone: true
+ application:
+ name: nacos
@@ -20,6 +20,11 @@ management:
exposure:
include: metrics,httptrace
+ server-addr: 127.0.0.1:8848
+ service: jeecg-system
servlet:
multipart:
max-file-size: -1
@@ -1,10 +1,9 @@
-
dubbo:
id: sys-center-dubbo-prodiver
name: sys-center-dubbo-prodiver
registry:
- address: nacos://127.0.0.1:8848
+ address: nacos://172.30.0.7:8848
protocol:
name: dubbo
port: 20880
@@ -21,6 +20,11 @@ management:
@@ -1,4 +1,3 @@
server:
port: 7001