xiewj 7 місяців тому
батько
коміт
a9ba792e2c

+ 94 - 0
src/main/resources/application-aws-prod.yml

@@ -0,0 +1,94 @@
+server:
+  port: 8787
+  servlet:
+    context-path: /bim
+
+spring:
+  resources:
+    chain:
+      strategy:
+        content:
+          enabled: true
+          paths: /**
+  servlet:
+    multipart:
+      enabled: true
+      max-request-size: 1024MB
+      max-file-size: 1024MB
+  # redis 配置
+  redis:
+    host: 8.211.153.189   #官网正式环境
+    port: 6379
+    timeout: 6000ms
+    # 数据库索引
+    database: 3
+    password: 4dage7y4s0h
+    # cluster:
+    #   max-redirects: 3  # 获取失败 最大重定向次数
+    #   nodes:
+    #     - 120.25.146.52:6379
+    jedis:
+      pool:
+        max-active: 10  #连接池最大连接数(使用负值表示没有限制)
+        max-idle: 10 # 连接池中的最大空闲连接
+        min-idle: 5 # 连接池中的最小空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+    lettuce:
+      shutdown-timeout: 0ms
+  # 数据源配置
+  datasource:
+    type: com.zaxxer.hikari.HikariDataSource
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    url: jdbc:mysql://172.31.47.163:13306/fdkk_bim?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Tokyo
+    username: root
+    password: JK20220120%JIK
+    hikari:
+      minimum-idle: 5
+      idle-timeout: 600000
+      maximum-pool-size: 10
+      auto-commit: true
+      pool-name: MyHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+
+tlog:
+  enable-invoke-time-print: true
+# 阿里云基本配置
+forest:
+  max-connections: 1000        # 连接池最大连接数
+  connect-timeout: 3000        # 连接超时时间,单位为毫秒
+  read-timeout: 3000           # 数据读取超时时间,单位为毫秒
+logging:
+  config: classpath:logback-spring.xml
+  maxHistory: 1
+  fdkk:
+    level: INFO
+  file:
+    path: /mnt/fdkk_bim/logs
+bimface:
+#  appKey: '5XagwZ5zk71jXCXdotjV2xKjbM5gzN1O'
+#  appSecret: 'MXqf3pXdD5ZOuzsefwyGWSaJI0swtBAB'
+  appKey: 'uOaJWvZKlvGfQkqL6jlntMRC0RifHC8P'
+  appSecret: 'Fe8vmVqKdtfBT9E7v2vNYw7taIX9fClU'
+bim:
+  uploadPath: /mnt/fdkk_bim/uploadPath
+  defaultFolder: bim
+  webSite : https://eur-bim.4dkankan.com
+  chromeDriver: /usr/local/bin/chromedriver
+  chromeBin: /usr/local/bin/google-chrome
+  mixIntegral : 1
+
+#    type: oss      阿里云 oss
+#    type: aws      亚马逊
+#    type: local    本地化
+filestorage:
+  active: aws
+  aws:
+    endpoint: http://eurs3.4dkankan.com
+    internal-endpoint: http://eurs3.4dkankan.com
+    access-key: AKIAWCV5QFZ3ZNELKYUY
+    access-key-secret: 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
+    bucket: 4dkankan
+    bucket-custom-domain:
+      4dkankan: https://eurs3.4dkankan.com

+ 93 - 0
src/main/resources/application-aws-uat.yml

@@ -0,0 +1,93 @@
+server:
+  port: 8787
+  servlet:
+    context-path: /bim
+
+spring:
+  resources:
+    chain:
+      strategy:
+        content:
+          enabled: true
+          paths: /**
+  servlet:
+    multipart:
+      enabled: true
+      max-request-size: 1024MB
+      max-file-size: 1024MB
+  # redis 配置
+  redis:
+    host: 127.0.0.1
+    port: 6379
+    timeout: 6000ms
+    # 数据库索引
+    database: 3
+    password: redis123ROOT.
+    # cluster:
+    #   max-redirects: 3  # 获取失败 最大重定向次数
+    #   nodes:
+    #     - 120.25.146.52:6379
+    jedis:
+      pool:
+        max-active: 10  #连接池最大连接数(使用负值表示没有限制)
+        max-idle: 10 # 连接池中的最大空闲连接
+        min-idle: 5 # 连接池中的最小空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+    lettuce:
+      shutdown-timeout: 0ms
+  # 数据源配置
+  datasource:
+    type: com.zaxxer.hikari.HikariDataSource
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    url: jdbc:mysql://localhost:3306/fdkk_bim?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
+    username: root
+    password: JK20220120%JIK
+    hikari:
+      minimum-idle: 5
+      idle-timeout: 600000
+      maximum-pool-size: 10
+      auto-commit: true
+      pool-name: MyHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+
+tlog:
+  enable-invoke-time-print: true
+# 阿里云基本配置
+forest:
+  max-connections: 1000        # 连接池最大连接数
+  connect-timeout: 3000        # 连接超时时间,单位为毫秒
+  read-timeout: 3000           # 数据读取超时时间,单位为毫秒
+logging:
+  config: classpath:logback-spring.xml
+  maxHistory: 1
+  fdkk:
+    level: INFO
+  file:
+    path: /mnt/fdkk_bim/logs
+bimface:
+  appKey: 'uOaJWvZKlvGfQkqL6jlntMRC0RifHC8P'
+  appSecret: 'Fe8vmVqKdtfBT9E7v2vNYw7taIX9fClU'
+bim:
+  uploadPath: /mnt/fdkk_bim/uploadPath
+  defaultFolder: bim
+  webSite : https://uat-eur-bim.4dkankan.com
+  chromeDriver: /usr/local/bin/chromedriver
+  chromeBin: /usr/bin/google-chrome
+  mixIntegral : 1
+
+#    type: oss      阿里云 oss
+#    type: aws      亚马逊
+#    type: local    本地化
+filestorage:
+  active: aws
+  aws:
+    endpoint: http://testeurs3.4dkankan.com
+    internal-endpoint: http://testeurs3.4dkankan.com
+    access-key: AKIAWCV5QFZ3ZNELKYUY
+    access-key-secret: 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
+    bucket: test-4dkankan
+    bucket-custom-domain:
+      test-4dkankan: https://testeurs3.4dkankan.com
+