浏览代码

本地和生产yml配置

chendayu 2 年之前
父节点
当前提交
e350cd9bcb

+ 25 - 0
src/main/resources/application-docker.yml

@@ -0,0 +1,25 @@
+spring:
+  redis:
+    host: pas-redis
+    port: 6379
+    database: 0
+    lettuce:
+      pool:
+        max-active: 20
+        max-idle: 20
+        min-idle: 0
+        max-wait: -1ms
+    timeout: 2000ms
+    password: cslg_docker_123456
+  datasource:
+    url: jdbc:mysql://pas-mysql:3306/pas?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: cslg_docker_123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      stat-view-servlet:
+        login-username: admin
+        login-password: cslg123456+
+      web-stat-filter:
+        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"

+ 46 - 0
src/main/resources/application-prodNetIn.yml

@@ -0,0 +1,46 @@
+spring:
+  #    # 使用 smtp 协议
+  #  mail.protocol: smtps
+  #  mail.host: smtp.exmail.qq.com
+  #  mail.port: 465
+  #  mail.username: shenyongyi@china-wispro.com
+  #    # 授权码
+  #  mail.password: c3hY5cgAexhhr9HL
+  #  mail.test-connection: false
+  #  mail.properties.mail.smtp.auth: true
+  #  mail.properties.mail.debug: false
+  #  mail.properties.mail.mime.splitlongparameters: false
+  #  mail.default-encoding: UTF-8
+  # rabbitmq
+  rabbitmq.host: 172.27.247.174
+  rabbitmq.port: 5672
+  rabbitmq.username: admin
+  rabbitmq.password: 123456
+  redis:
+    host: 172.27.247.174
+    port: 6379
+    database: 3
+    password: Xx0GWxdWQJxx6Swe
+    lettuce:
+      pool:
+        max-active: 20
+        max-idle: 20
+        min-idle: 0
+        max-wait: -1ms
+    timeout: 2000ms
+  datasource:
+    url: jdbc:mysql://172.27.247.174:3306/PCS_PROD?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: TU5x6IeBi7rl
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      stat-view-servlet:
+        login-username: admin
+        login-password: Cslg2022+
+      web-stat-filter:
+        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
+springdoc:
+  api-docs:
+    enabled: false
+queueName: emailProd.queue

+ 43 - 0
src/main/resources/application-prodNetOut.yml

@@ -0,0 +1,43 @@
+spring:
+  #    # 使用 smtp 协议
+  #  mail.protocol: smtps
+  #  mail.host: smtp.exmail.qq.com
+  #  mail.port: 465
+  #  mail.username: shenyongyi@china-wispro.com
+  #    # 授权码
+  #  mail.password: c3hY5cgAexhhr9HL
+  #  mail.test-connection: false
+  #  mail.properties.mail.smtp.auth: true
+  #  mail.properties.mail.debug: false
+  #  mail.properties.mail.mime.splitlongparameters: false
+  #  mail.default-encoding: UTF-8
+  # rabbitmq
+  rabbitmq.host: 47.101.137.223
+  rabbitmq.port: 5672
+  rabbitmq.username: admin
+  rabbitmq.password: 123456
+  redis:
+    host: 47.101.137.223
+    port: 6379
+    database: 3
+    password: Xx0GWxdWQJxx6Swe
+    lettuce:
+      pool:
+        max-active: 20
+        max-idle: 20
+        min-idle: 0
+        max-wait: -1ms
+    timeout: 2000ms
+  datasource:
+    url: jdbc:mysql://47.101.137.223:3306/PCS_PROD?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: TU5x6IeBi7rl
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      stat-view-servlet:
+        login-username: admin
+        login-password: Cslg2022+
+      web-stat-filter:
+        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
+queueName: emailProd.queue

+ 43 - 0
src/main/resources/application-testNetIn.yml

@@ -0,0 +1,43 @@
+spring:
+  #    # 使用 smtp 协议
+  #  mail.protocol: smtps
+  #  mail.host: smtp.exmail.qq.com
+  #  mail.port: 465
+  #  mail.username: shenyongyi@china-wispro.com
+  #    # 授权码
+  #  mail.password: c3hY5cgAexhhr9HL
+  #  mail.test-connection: false
+  #  mail.properties.mail.smtp.auth: true
+  #  mail.properties.mail.debug: false
+  #  mail.properties.mail.mime.splitlongparameters: false
+  #  mail.default-encoding: UTF-8
+  # rabbitmq
+  rabbitmq.host: 172.27.247.174
+  rabbitmq.port: 5672
+  rabbitmq.username: admin
+  rabbitmq.password: 123456
+  redis:
+    host: 172.27.247.174
+    port: 6379
+    database: 3
+    password: Xx0GWxdWQJxx6Swe
+    lettuce:
+      pool:
+        max-active: 20
+        max-idle: 20
+        min-idle: 0
+        max-wait: -1ms
+    timeout: 2000ms
+  datasource:
+    url: jdbc:mysql://172.27.247.174:3306/PCS_TEST2?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: rrzTwWAYX8Gxh5JH
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      stat-view-servlet:
+        login-username: admin
+        login-password: 123456
+      web-stat-filter:
+        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
+queueName: emailTest.queue

+ 43 - 0
src/main/resources/application-testNetOut.yml

@@ -0,0 +1,43 @@
+spring:
+  #    # 使用 smtp 协议
+  #  mail.protocol: smtps
+  #  mail.host: smtp.exmail.qq.com
+  #  mail.port: 465
+  #  mail.username: shenyongyi@china-wispro.com
+  #    # 授权码
+  #  mail.password: c3hY5cgAexhhr9HL
+  #  mail.test-connection: false
+  #  mail.properties.mail.smtp.auth: true
+  #  mail.properties.mail.debug: false
+  #  mail.properties.mail.mime.splitlongparameters: false
+  #  mail.default-encoding: UTF-8
+  # rabbitmq
+  rabbitmq.host: 47.101.137.223
+  rabbitmq.port: 5672
+  rabbitmq.username: admin
+  rabbitmq.password: 123456
+  redis:
+    host: 47.101.137.223
+    port: 6379
+    database: 3
+    password: Xx0GWxdWQJxx6Swe
+    lettuce:
+      pool:
+        max-active: 20
+        max-idle: 20
+        min-idle: 0
+        max-wait: -1ms
+    timeout: 2000ms
+  datasource:
+    url: jdbc:mysql://47.101.137.223:3306/PCS_TEST?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: TU5x6IeBi7rl
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      stat-view-servlet:
+        login-username: admin
+        login-password: 123456
+      web-stat-filter:
+        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
+queueName: emailTest.queue