Commit 53c17c86a494a1443f6e888d93edb8c8d353e7a7
Merge branch 'master' of http://gitlab.gaoxiaobang.com/zygj/huike-eaas-config
Showing
3 changed files
with
84 additions
and
31 deletions
class-service.yml
| @@ -73,24 +73,12 @@ spring: | @@ -73,24 +73,12 @@ spring: | ||
| 73 | #date-format: yyyy-MM-dd HH:mm:ss | 73 | #date-format: yyyy-MM-dd HH:mm:ss |
| 74 | #deserialization.accept_empty_string_as_null_object: true | 74 | #deserialization.accept_empty_string_as_null_object: true |
| 75 | 75 | ||
| 76 | - activemq: | ||
| 77 | - broker-url: failover:(tcp://mqserver:61616)?initialReconnectDelay=100 #ActiveMQ use static transport for broker clusters. multicast discovery for broker clusters, JmsListener cannot auto receive messages from some ActiveMQ servers | ||
| 78 | - inMemory: true | ||
| 79 | - pool: | ||
| 80 | - enabled: true | ||
| 81 | - max-connections: 5 | ||
| 82 | - idle-timeout: 30000 | ||
| 83 | - expiry-timeout: 0 | ||
| 84 | - jackson: | ||
| 85 | - time-zone: GMT+8 | ||
| 86 | - date-format: yyyy-MM-dd HH:mm:ss | ||
| 87 | - deserialization.accept_empty_string_as_null_object: true | ||
| 88 | 76 | ||
| 89 | mybatis: | 77 | mybatis: |
| 90 | mapperLocations: classpath:/mybatis/*.xml | 78 | mapperLocations: classpath:/mybatis/*.xml |
| 91 | typeAliasesPackage: com.huike.eaas.microservice.classes.domains | 79 | typeAliasesPackage: com.huike.eaas.microservice.classes.domains |
| 92 | config: classpath:mybatis-config.xml | 80 | config: classpath:mybatis-config.xml |
| 93 | - | 81 | + |
| 94 | 82 | ||
| 95 | #mybatis: | 83 | #mybatis: |
| 96 | #configLocation: classpath:mybatis-config.xml | 84 | #configLocation: classpath:mybatis-config.xml |
| @@ -127,7 +115,7 @@ hystrix: | @@ -127,7 +115,7 @@ hystrix: | ||
| 127 | isolation: | 115 | isolation: |
| 128 | thread: | 116 | thread: |
| 129 | timeoutInMilliseconds: 60000 | 117 | timeoutInMilliseconds: 60000 |
| 130 | - | 118 | + |
| 131 | 119 | ||
| 132 | #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | 120 | #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) |
| 133 | #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | 121 | #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) |
| @@ -145,12 +133,28 @@ apiConfig: | @@ -145,12 +133,28 @@ apiConfig: | ||
| 145 | gxbApiUrl: http://gxb-api:8080/gxb-api | 133 | gxbApiUrl: http://gxb-api:8080/gxb-api |
| 146 | gxbBiApiUrl: http://bi-api:8080/bi-api | 134 | gxbBiApiUrl: http://bi-api:8080/bi-api |
| 147 | testDecry: ENC(8aea42e66b0928c44cd8f861a9d558e6) | 135 | testDecry: ENC(8aea42e66b0928c44cd8f861a9d558e6) |
| 148 | - | 136 | + |
| 149 | sendCloud: | 137 | sendCloud: |
| 150 | user: postmaster@kkb.sendcloud.org | 138 | user: postmaster@kkb.sendcloud.org |
| 151 | key: ENC(ad810a86e7a4c5910c4e6a72789cf775e59ecaaf2ed5eb3a4b4101fcf299419a) | 139 | key: ENC(ad810a86e7a4c5910c4e6a72789cf775e59ecaaf2ed5eb3a4b4101fcf299419a) |
| 152 | from: postmaster@kkb.sendcloud.org | 140 | from: postmaster@kkb.sendcloud.org |
| 153 | 141 | ||
| 142 | +index: | ||
| 143 | + indexDir: /app/index/ | ||
| 144 | + | ||
| 145 | +#xxl-job | ||
| 146 | +xxl: | ||
| 147 | + job: | ||
| 148 | + admin: | ||
| 149 | + addresses: http://192.168.30.61:30140/xxl-job-admin | ||
| 150 | + executor: | ||
| 151 | + appname: classes-server | ||
| 152 | + ip: | ||
| 153 | + port: 8888 | ||
| 154 | + logpath: /app/logs | ||
| 155 | + logretentiondays: -1 | ||
| 156 | + accessToken: | ||
| 157 | + | ||
| 154 | --- | 158 | --- |
| 155 | server: | 159 | server: |
| 156 | port: 16200 | 160 | port: 16200 |
| @@ -191,7 +195,7 @@ spring: | @@ -191,7 +195,7 @@ spring: | ||
| 191 | validation-query: SELECT 1 | 195 | validation-query: SELECT 1 |
| 192 | test-on-borrow: true | 196 | test-on-borrow: true |
| 193 | test-while-idle: true | 197 | test-while-idle: true |
| 194 | - | 198 | + |
| 195 | secondDatasource: | 199 | secondDatasource: |
| 196 | name: gxb_core | 200 | name: gxb_core |
| 197 | url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | 201 | url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 |
| @@ -224,7 +228,7 @@ mybatis: | @@ -224,7 +228,7 @@ mybatis: | ||
| 224 | mapperLocations: classpath:/mybatis/*.xml | 228 | mapperLocations: classpath:/mybatis/*.xml |
| 225 | typeAliasesPackage: com.huike.eaas.microservice.classes.domains | 229 | typeAliasesPackage: com.huike.eaas.microservice.classes.domains |
| 226 | config: classpath:mybatis-config.xml | 230 | config: classpath:mybatis-config.xml |
| 227 | - | 231 | + |
| 228 | 232 | ||
| 229 | #mybatis: | 233 | #mybatis: |
| 230 | #configLocation: classpath:mybatis-config.xml | 234 | #configLocation: classpath:mybatis-config.xml |
| @@ -246,7 +250,7 @@ eureka: | @@ -246,7 +250,7 @@ eureka: | ||
| 246 | fetchRegistry: true | 250 | fetchRegistry: true |
| 247 | serviceUrl: | 251 | serviceUrl: |
| 248 | defaultZone: http://discovery:15200/eureka/ | 252 | defaultZone: http://discovery:15200/eureka/ |
| 249 | - | 253 | + |
| 250 | hystrix: | 254 | hystrix: |
| 251 | command: | 255 | command: |
| 252 | default: | 256 | default: |
| @@ -273,6 +277,22 @@ apiConfig: | @@ -273,6 +277,22 @@ apiConfig: | ||
| 273 | gxbApiUrl: http://gxb-api:8080/gxb-api | 277 | gxbApiUrl: http://gxb-api:8080/gxb-api |
| 274 | gxbBiApiUrl: http://bi-api:8080/bi-api | 278 | gxbBiApiUrl: http://bi-api:8080/bi-api |
| 275 | 279 | ||
| 280 | +index: | ||
| 281 | + indexDir: /app/index/ | ||
| 282 | + | ||
| 283 | +#xxl-job | ||
| 284 | +xxl: | ||
| 285 | + job: | ||
| 286 | + admin: | ||
| 287 | + addresses: http://192.168.30.61:30140/xxl-job-admin | ||
| 288 | + executor: | ||
| 289 | + appname: classes-server | ||
| 290 | + ip: | ||
| 291 | + port: 8888 | ||
| 292 | + logpath: /app/logs | ||
| 293 | + logretentiondays: -1 | ||
| 294 | + accessToken: | ||
| 295 | + | ||
| 276 | --- | 296 | --- |
| 277 | server: | 297 | server: |
| 278 | port: 16200 | 298 | port: 16200 |
| @@ -312,7 +332,7 @@ spring: | @@ -312,7 +332,7 @@ spring: | ||
| 312 | validation-query: SELECT 1 | 332 | validation-query: SELECT 1 |
| 313 | test-on-borrow: true | 333 | test-on-borrow: true |
| 314 | test-while-idle: true | 334 | test-while-idle: true |
| 315 | - | 335 | + |
| 316 | secondDatasource: | 336 | secondDatasource: |
| 317 | name: gxb_core | 337 | name: gxb_core |
| 318 | url: jdbc:mysql://db-master.gxb-base:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | 338 | url: jdbc:mysql://db-master.gxb-base:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 |
| @@ -340,12 +360,12 @@ spring: | @@ -340,12 +360,12 @@ spring: | ||
| 340 | #sentinel: | 360 | #sentinel: |
| 341 | #master: mymaster1 | 361 | #master: mymaster1 |
| 342 | #nodes: redis1:16379,redis2:16379 | 362 | #nodes: redis1:16379,redis2:16379 |
| 343 | - | 363 | + |
| 344 | #jackson: | 364 | #jackson: |
| 345 | #time-zone: GMT+8 | 365 | #time-zone: GMT+8 |
| 346 | #date-format: yyyy-MM-dd HH:mm:ss | 366 | #date-format: yyyy-MM-dd HH:mm:ss |
| 347 | #deserialization.accept_empty_string_as_null_object: true | 367 | #deserialization.accept_empty_string_as_null_object: true |
| 348 | - | 368 | + |
| 349 | 369 | ||
| 350 | mybatis: | 370 | mybatis: |
| 351 | mapperLocations: classpath:/mybatis/*.xml | 371 | mapperLocations: classpath:/mybatis/*.xml |
| @@ -368,7 +388,7 @@ eureka: | @@ -368,7 +388,7 @@ eureka: | ||
| 368 | fetchRegistry: true | 388 | fetchRegistry: true |
| 369 | serviceUrl: | 389 | serviceUrl: |
| 370 | defaultZone: http://discovery:15200/eureka/ | 390 | defaultZone: http://discovery:15200/eureka/ |
| 371 | - | 391 | + |
| 372 | hystrix: | 392 | hystrix: |
| 373 | command: | 393 | command: |
| 374 | default: | 394 | default: |
| @@ -395,8 +415,24 @@ apiConfig: | @@ -395,8 +415,24 @@ apiConfig: | ||
| 395 | gxbApiUrl: http://api/gxb-api | 415 | gxbApiUrl: http://api/gxb-api |
| 396 | gxbBiApiUrl: http://bi-api/bi-api | 416 | gxbBiApiUrl: http://bi-api/bi-api |
| 397 | parentProjectId: 118 | 417 | parentProjectId: 118 |
| 398 | - | 418 | + |
| 399 | sendCloud: | 419 | sendCloud: |
| 400 | user: postmaster@kkb.sendcloud.org | 420 | user: postmaster@kkb.sendcloud.org |
| 401 | key: ENC(ad810a86e7a4c5910c4e6a72789cf775e59ecaaf2ed5eb3a4b4101fcf299419a) | 421 | key: ENC(ad810a86e7a4c5910c4e6a72789cf775e59ecaaf2ed5eb3a4b4101fcf299419a) |
| 402 | - from: postmaster@kkb.sendcloud.org | ||
| 403 | \ No newline at end of file | 422 | \ No newline at end of file |
| 423 | + from: postmaster@kkb.sendcloud.org | ||
| 424 | + | ||
| 425 | +index: | ||
| 426 | + indexDir: /app/users/index/ | ||
| 427 | + | ||
| 428 | +#xxl-job | ||
| 429 | +xxl: | ||
| 430 | + job: | ||
| 431 | + admin: | ||
| 432 | + addresses: http://job-service.gaoxiaobang.com/xxl-job-admin | ||
| 433 | + executor: | ||
| 434 | + appname: classes-server | ||
| 435 | + ip: | ||
| 436 | + port: 8888 | ||
| 437 | + logpath: /app/logs | ||
| 438 | + logretentiondays: -1 | ||
| 439 | + accessToken: | ||
| 404 | \ No newline at end of file | 440 | \ No newline at end of file |
gateway.yml
| @@ -73,6 +73,9 @@ zuul: | @@ -73,6 +73,9 @@ zuul: | ||
| 73 | training: | 73 | training: |
| 74 | path: /training-service/** | 74 | path: /training-service/** |
| 75 | serviceId: training-service | 75 | serviceId: training-service |
| 76 | + cloudProduct: | ||
| 77 | + path: /cloud-product/** | ||
| 78 | + serviceId: cloud-product-service | ||
| 76 | 79 | ||
| 77 | hystrix: | 80 | hystrix: |
| 78 | command: | 81 | command: |
| @@ -116,7 +119,7 @@ cas: | @@ -116,7 +119,7 @@ cas: | ||
| 116 | casServerUrlPrefix: http://cas/ | 119 | casServerUrlPrefix: http://cas/ |
| 117 | casServerLoginUrl: https://cas.gaoxiaobang.com/login | 120 | casServerLoginUrl: https://cas.gaoxiaobang.com/login |
| 118 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout | 121 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout |
| 119 | - ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token)|(/cloud-servic) | 122 | + ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(/cloud-product)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token)|(/cloud-servic) |
| 120 | 123 | ||
| 121 | tenant: | 124 | tenant: |
| 122 | tenantId: 991 | 125 | tenantId: 991 |
| @@ -184,6 +187,9 @@ zuul: | @@ -184,6 +187,9 @@ zuul: | ||
| 184 | training: | 187 | training: |
| 185 | path: /training-service/** | 188 | path: /training-service/** |
| 186 | serviceId: training-service | 189 | serviceId: training-service |
| 190 | + cloudProduct: | ||
| 191 | + path: /cloud-product/** | ||
| 192 | + serviceId: cloud-product-service | ||
| 187 | hystrix: | 193 | hystrix: |
| 188 | command: | 194 | command: |
| 189 | default: | 195 | default: |
| @@ -219,7 +225,7 @@ cas: | @@ -219,7 +225,7 @@ cas: | ||
| 219 | casServerUrlPrefix: https://cas.gaoxiaobang.com/ | 225 | casServerUrlPrefix: https://cas.gaoxiaobang.com/ |
| 220 | casServerLoginUrl: https://cas.gaoxiaobang.com/login | 226 | casServerLoginUrl: https://cas.gaoxiaobang.com/login |
| 221 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout | 227 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout |
| 222 | - ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token) | 228 | + ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(/cloud-product)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token) |
| 223 | 229 | ||
| 224 | tenant: | 230 | tenant: |
| 225 | tenantId: 991 | 231 | tenantId: 991 |
| @@ -296,6 +302,9 @@ zuul: | @@ -296,6 +302,9 @@ zuul: | ||
| 296 | training: | 302 | training: |
| 297 | path: /training-service/** | 303 | path: /training-service/** |
| 298 | serviceId: training-service | 304 | serviceId: training-service |
| 305 | + cloudProduct: | ||
| 306 | + path: /cloud-product/** | ||
| 307 | + serviceId: cloud-product-service | ||
| 299 | 308 | ||
| 300 | hystrix: | 309 | hystrix: |
| 301 | command: | 310 | command: |
| @@ -332,7 +341,7 @@ cas: | @@ -332,7 +341,7 @@ cas: | ||
| 332 | casServerUrlPrefix: http://cas/ | 341 | casServerUrlPrefix: http://cas/ |
| 333 | casServerLoginUrl: https://cas.gaoxiaobang.com/login | 342 | casServerLoginUrl: https://cas.gaoxiaobang.com/login |
| 334 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout | 343 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout |
| 335 | - ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token) | 344 | + ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(/cloud-product)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token) |
| 336 | 345 | ||
| 337 | tenant: | 346 | tenant: |
| 338 | tenantId: 991 | 347 | tenantId: 991 |
training-service.yml
| @@ -24,15 +24,23 @@ spring: | @@ -24,15 +24,23 @@ spring: | ||
| 24 | test-on-borrow: true | 24 | test-on-borrow: true |
| 25 | test-while-idle: true | 25 | test-while-idle: true |
| 26 | redis: | 26 | redis: |
| 27 | - database: 0 | ||
| 28 | - host: redis-server | ||
| 29 | - port: 6379 | ||
| 30 | - password: ENC(8aea42e66b0928c44cd8f861a9d558e6) | ||
| 31 | pool: | 27 | pool: |
| 32 | max-idle: 100 | 28 | max-idle: 100 |
| 33 | min-idle: 10 | 29 | min-idle: 10 |
| 34 | max-active: 1000 | 30 | max-active: 1000 |
| 35 | max-wait: 100000 | 31 | max-wait: 100000 |
| 32 | + | ||
| 33 | + redis1: | ||
| 34 | + database: 0 | ||
| 35 | + host: 192.168.30.100 | ||
| 36 | + port: 6379 | ||
| 37 | + password: 123456 | ||
| 38 | + | ||
| 39 | + redis2: | ||
| 40 | + database: 0 | ||
| 41 | + host: 192.168.30.100 | ||
| 42 | + port: 6380 | ||
| 43 | + password: 123456 | ||
| 36 | #sentinel: | 44 | #sentinel: |
| 37 | #master: mymaster1 | 45 | #master: mymaster1 |
| 38 | #nodes: redis-server:16379,redis-server:16379 | 46 | #nodes: redis-server:16379,redis-server:16379 |