Commit 6709d96786d1940d268e691eeebd868ca55b6d27
1 parent
90e96af3
创新创业配置文件
Showing
1 changed file
with
360 additions
and
0 deletions
cxcy-service.yml
0 → 100644
| 1 | +server: | |
| 2 | + port: 16300 | |
| 3 | + | |
| 4 | +spring: | |
| 5 | + profiles: development | |
| 6 | + cloud: | |
| 7 | + config: | |
| 8 | + discovery: | |
| 9 | + enabled: true | |
| 10 | + aop: | |
| 11 | + proxy-target-class: true | |
| 12 | + | |
| 13 | + coreDatasource: | |
| 14 | + write: | |
| 15 | + name: cxcy | |
| 16 | + url: jdbc:mysql://testdb-master:3306/cxcy?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 17 | + username: test | |
| 18 | + password: 123456 | |
| 19 | + driver-class-name: com.mysql.jdbc.Driver | |
| 20 | + max-idle: 10 | |
| 21 | + max-active: 30 | |
| 22 | + max-wait: 60000 | |
| 23 | + min-idle: 10 | |
| 24 | + initial-size: 10 | |
| 25 | + validation-query: SELECT 1 | |
| 26 | + test-on-borrow: true | |
| 27 | + test-while-idle: true | |
| 28 | + read1: | |
| 29 | + name: cxcy | |
| 30 | + url: jdbc:mysql://testdb-master:3306/cxcy?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 31 | + username: test | |
| 32 | + password: 123456 | |
| 33 | + driver-class-name: com.mysql.jdbc.Driver | |
| 34 | + max-idle: 10 | |
| 35 | + max-active: 30 | |
| 36 | + max-wait: 60000 | |
| 37 | + min-idle: 10 | |
| 38 | + initial-size: 10 | |
| 39 | + validation-query: SELECT 1 | |
| 40 | + test-on-borrow: true | |
| 41 | + test-while-idle: true | |
| 42 | + | |
| 43 | + secondDatasource: | |
| 44 | + name: cxcy | |
| 45 | + url: jdbc:mysql://testdb-master:3306/cxcy?useUnicode=true&characterEncoding=UTF-8 | |
| 46 | + username: test | |
| 47 | + password: 123456 | |
| 48 | + driver-class-name: com.mysql.jdbc.Driver | |
| 49 | + max-idle: 10 | |
| 50 | + max-active: 30 | |
| 51 | + max-wait: 60000 | |
| 52 | + min-idle: 10 | |
| 53 | + initial-size: 10 | |
| 54 | + validation-query: SELECT 1 | |
| 55 | + test-on-borrow: true | |
| 56 | + test-while-idle: true | |
| 57 | + redis: | |
| 58 | + database: 0 | |
| 59 | + host: redis-server | |
| 60 | + port: 6379 | |
| 61 | + password: 123456 | |
| 62 | + pool: | |
| 63 | + max-idle: 100 | |
| 64 | + min-idle: 10 | |
| 65 | + max-active: 1000 | |
| 66 | + max-wait: 100000 | |
| 67 | + sentinel: | |
| 68 | + master: mymaster1 | |
| 69 | + nodes: redis-server:16379,redis-server:16379 | |
| 70 | + | |
| 71 | +mybatis: | |
| 72 | + mapperLocations: classpath:/mybatis/*.xml | |
| 73 | + typeAliasesPackage: com.huike.eaas.microservice.cxcy.domains | |
| 74 | + config: classpath:mybatis-config.xml | |
| 75 | + | |
| 76 | + | |
| 77 | +#mybatis: | |
| 78 | + #configLocation: classpath:mybatis-config.xml | |
| 79 | + | |
| 80 | +endpoints: | |
| 81 | + restart: | |
| 82 | + enabled: true | |
| 83 | + shutdown: | |
| 84 | + enabled: true | |
| 85 | + health: | |
| 86 | + sensitive: false | |
| 87 | + | |
| 88 | +eureka: | |
| 89 | + instance: | |
| 90 | + hostname: cxcy-service | |
| 91 | + perferIpAddress: true | |
| 92 | + instance-id: ${spring.cloud.client.ipAddress}:${server.port} | |
| 93 | + leaseRenewalIntervalInSeconds: 5 | |
| 94 | + leaseExpirationDurationInSeconds: 15 | |
| 95 | + client: | |
| 96 | + registerWithEureka: true | |
| 97 | + fetchRegistry: true | |
| 98 | + serviceUrl: | |
| 99 | + defaultZone: http://discovery:15200/eureka/ | |
| 100 | + healthcheck: | |
| 101 | + enabled: true | |
| 102 | + | |
| 103 | +hystrix: | |
| 104 | + command: | |
| 105 | + default: | |
| 106 | + execution: | |
| 107 | + timeout: | |
| 108 | + enabled: true | |
| 109 | + isolation: | |
| 110 | + thread: | |
| 111 | + timeoutInMilliseconds: 60000 | |
| 112 | + | |
| 113 | +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | |
| 114 | +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | |
| 115 | +ribbon: | |
| 116 | + eureka: | |
| 117 | + enabled: true | |
| 118 | + UseIPAddrForServer: true | |
| 119 | + ReadTimeout: 5000 | |
| 120 | + ConnectTimeout: 10000 | |
| 121 | + | |
| 122 | +# 一些公共的常量配置 | |
| 123 | +apiConfig: | |
| 124 | + resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com | |
| 125 | + usrLocalTomcatTempLocation: /usr/local/tomcat/temp | |
| 126 | + gxbApiUrl: http://gxb-api:8080/gxb-api | |
| 127 | +--- | |
| 128 | +server: | |
| 129 | + port: 16300 | |
| 130 | + | |
| 131 | +spring: | |
| 132 | + profiles: test | |
| 133 | + cloud: | |
| 134 | + config: | |
| 135 | + discovery: | |
| 136 | + enabled: true | |
| 137 | + | |
| 138 | + coreDatasource: | |
| 139 | + write: | |
| 140 | + name: cxcy | |
| 141 | + url: jdbc:mysql://testdb-master:3306/cxcy?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 142 | + username: test | |
| 143 | + password: 123456 | |
| 144 | + driver-class-name: com.mysql.jdbc.Driver | |
| 145 | + max-idle: 10 | |
| 146 | + max-active: 30 | |
| 147 | + max-wait: 60000 | |
| 148 | + min-idle: 10 | |
| 149 | + initial-size: 10 | |
| 150 | + validation-query: SELECT 1 | |
| 151 | + test-on-borrow: true | |
| 152 | + test-while-idle: true | |
| 153 | + read1: | |
| 154 | + name: cxcy | |
| 155 | + url: jdbc:mysql://testdb-master:3306/cxcy?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 156 | + username: test | |
| 157 | + password: 123456 | |
| 158 | + driver-class-name: com.mysql.jdbc.Driver | |
| 159 | + max-idle: 10 | |
| 160 | + max-active: 30 | |
| 161 | + max-wait: 60000 | |
| 162 | + min-idle: 10 | |
| 163 | + initial-size: 10 | |
| 164 | + validation-query: SELECT 1 | |
| 165 | + test-on-borrow: true | |
| 166 | + test-while-idle: true | |
| 167 | + | |
| 168 | + secondDatasource: | |
| 169 | + name: cxcy | |
| 170 | + url: jdbc:mysql://testdb-master:3306/cxcy?useUnicode=true&characterEncoding=UTF-8 | |
| 171 | + username: rd | |
| 172 | + password: rd@123456 | |
| 173 | + driver-class-name: com.mysql.jdbc.Driver | |
| 174 | + max-idle: 10 | |
| 175 | + max-active: 30 | |
| 176 | + max-wait: 60000 | |
| 177 | + min-idle: 10 | |
| 178 | + initial-size: 10 | |
| 179 | + validation-query: SELECT 1 | |
| 180 | + test-on-borrow: true | |
| 181 | + test-while-idle: true | |
| 182 | + redis: | |
| 183 | + database: 0 | |
| 184 | + host: redis-server | |
| 185 | + port: 6379 | |
| 186 | + password: 123456 | |
| 187 | + pool: | |
| 188 | + max-idle: 100 | |
| 189 | + min-idle: 10 | |
| 190 | + max-active: 1000 | |
| 191 | + max-wait: 100000 | |
| 192 | + sentinel: | |
| 193 | + master: mymaster1 | |
| 194 | + nodes: redis-server:16379,redis-server:16379 | |
| 195 | + | |
| 196 | +mybatis: | |
| 197 | + mapperLocations: classpath:/mybatis/*.xml | |
| 198 | + typeAliasesPackage: com.huike.eaas.microservice.cxcy.domains | |
| 199 | + config: classpath:mybatis-config.xml | |
| 200 | + | |
| 201 | + | |
| 202 | +#mybatis: | |
| 203 | + #configLocation: classpath:mybatis-config.xml | |
| 204 | + | |
| 205 | +endpoints: | |
| 206 | + restart: | |
| 207 | + enabled: true | |
| 208 | + shutdown: | |
| 209 | + enabled: true | |
| 210 | + health: | |
| 211 | + sensitive: false | |
| 212 | + | |
| 213 | +eureka: | |
| 214 | + instance: | |
| 215 | + hostname: cxcy-service | |
| 216 | + perferIpAddress: true | |
| 217 | + client: | |
| 218 | + registerWithEureka: true | |
| 219 | + fetchRegistry: true | |
| 220 | + serviceUrl: | |
| 221 | + defaultZone: http://discovery:15200/eureka/ | |
| 222 | + | |
| 223 | +hystrix: | |
| 224 | + command: | |
| 225 | + default: | |
| 226 | + execution: | |
| 227 | + timeout: | |
| 228 | + enabled: true | |
| 229 | + isolation: | |
| 230 | + thread: | |
| 231 | + timeoutInMilliseconds: 60000 | |
| 232 | + | |
| 233 | +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | |
| 234 | +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | |
| 235 | +ribbon: | |
| 236 | + eureka: | |
| 237 | + enabled: true | |
| 238 | + UseIPAddrForServer: true | |
| 239 | + ReadTimeout: 5000 | |
| 240 | + ConnectTimeout: 10000 | |
| 241 | + | |
| 242 | +# 一些公共的常量配置 | |
| 243 | +apiConfig: | |
| 244 | + resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com | |
| 245 | + usrLocalTomcatTempLocation: /usr/local/tomcat/temp | |
| 246 | + gxbApiUrl: http://gxb-api:8080/gxb-api | |
| 247 | +--- | |
| 248 | +server: | |
| 249 | + port: 16300 | |
| 250 | + | |
| 251 | +spring: | |
| 252 | + profiles: production | |
| 253 | + cloud: | |
| 254 | + config: | |
| 255 | + discovery: | |
| 256 | + enabled: true | |
| 257 | + coreDatasource: | |
| 258 | + write: | |
| 259 | + name: cxcy | |
| 260 | + url: jdbc:mysql://emysql3:3306/cxcy?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 261 | + username: postgres | |
| 262 | + password: 5095e001221824498ea622e89bdd3627 | |
| 263 | + driver-class-name: com.mysql.jdbc.Driver | |
| 264 | + max-idle: 10 | |
| 265 | + max-active: 30 | |
| 266 | + max-wait: 60000 | |
| 267 | + min-idle: 10 | |
| 268 | + initial-size: 10 | |
| 269 | + validation-query: SELECT 1 | |
| 270 | + test-on-borrow: true | |
| 271 | + test-while-idle: true | |
| 272 | + read1: | |
| 273 | + name: cxcy | |
| 274 | + url: jdbc:mysql://db3:3306/cxcy?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 275 | + username: postgres | |
| 276 | + password: 5095e001221824498ea622e89bdd3627 | |
| 277 | + driver-class-name: com.mysql.jdbc.Driver | |
| 278 | + max-idle: 10 | |
| 279 | + max-active: 30 | |
| 280 | + max-wait: 60000 | |
| 281 | + min-idle: 10 | |
| 282 | + initial-size: 10 | |
| 283 | + validation-query: SELECT 1 | |
| 284 | + test-on-borrow: true | |
| 285 | + test-while-idle: true | |
| 286 | + | |
| 287 | + secondDatasource: | |
| 288 | + name: cxcy | |
| 289 | + url: jdbc:mysql://emysql3:3306/cxcy?useUnicode=true&characterEncoding=UTF-8 | |
| 290 | + username: postgres | |
| 291 | + password: 5095e001221824498ea622e89bdd3627 | |
| 292 | + driver-class-name: com.mysql.jdbc.Driver | |
| 293 | + max-idle: 10 | |
| 294 | + max-active: 30 | |
| 295 | + max-wait: 60000 | |
| 296 | + min-idle: 10 | |
| 297 | + initial-size: 10 | |
| 298 | + validation-query: SELECT 1 | |
| 299 | + test-on-borrow: true | |
| 300 | + test-while-idle: true | |
| 301 | + redis: | |
| 302 | + database: 0 | |
| 303 | + host: redis1 | |
| 304 | + port: 6379 | |
| 305 | + password: 6cxbJLDsHU%^QG^qJwpT7ow | |
| 306 | + pool: | |
| 307 | + max-idle: 100 | |
| 308 | + min-idle: 10 | |
| 309 | + max-active: 1000 | |
| 310 | + max-wait: 100000 | |
| 311 | + sentinel: | |
| 312 | + master: mymaster1 | |
| 313 | + nodes: redis1:16379,redis2:16379 | |
| 314 | + | |
| 315 | +mybatis: | |
| 316 | + mapperLocations: classpath:/mybatis/*.xml | |
| 317 | + typeAliasesPackage: com.huike.eaas.microservice.cxcy.domains | |
| 318 | + config: classpath:mybatis-config.xml | |
| 319 | + | |
| 320 | +endpoints: | |
| 321 | + restart: | |
| 322 | + enabled: true | |
| 323 | + shutdown: | |
| 324 | + enabled: true | |
| 325 | + health: | |
| 326 | + sensitive: false | |
| 327 | + | |
| 328 | +eureka: | |
| 329 | + instance: | |
| 330 | + perferIpAddress: true | |
| 331 | + client: | |
| 332 | + registerWithEureka: true | |
| 333 | + fetchRegistry: true | |
| 334 | + serviceUrl: | |
| 335 | + defaultZone: http://discovery:15200/eureka/ | |
| 336 | + | |
| 337 | +hystrix: | |
| 338 | + command: | |
| 339 | + default: | |
| 340 | + execution: | |
| 341 | + timeout: | |
| 342 | + enabled: true | |
| 343 | + isolation: | |
| 344 | + thread: | |
| 345 | + timeoutInMilliseconds: 60000 | |
| 346 | + | |
| 347 | +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | |
| 348 | +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | |
| 349 | +ribbon: | |
| 350 | + eureka: | |
| 351 | + enabled: true | |
| 352 | + UseIPAddrForServer: true | |
| 353 | + ReadTimeout: 5000 | |
| 354 | + ConnectTimeout: 10000 | |
| 355 | + | |
| 356 | +# 一些公共的常量配置 | |
| 357 | +apiConfig: | |
| 358 | + resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com | |
| 359 | + usrLocalTomcatTempLocation: /usr/local/tomcat/temp | |
| 360 | + gxbApiUrl: http://api/gxb-api | |
| 0 | 361 | \ No newline at end of file | ... | ... |