Explorar el Código

lc环境整改修改配置

tags/v1.1.0
chenyukun hace 1 año
padre
commit
deb90eafd1
Se han modificado 5 ficheros con 74 adiciones y 67 borrados
  1. +3
    -3
      tuoheng-admin/src/main/resources/application-airport.yml
  2. +1
    -1
      tuoheng-admin/src/main/resources/application-dev.yml
  3. +1
    -1
      tuoheng-admin/src/main/resources/application-local.yml
  4. +68
    -61
      tuoheng-admin/src/main/resources/application-prod.yml
  5. +1
    -1
      tuoheng-admin/src/main/resources/application-test.yml

+ 3
- 3
tuoheng-admin/src/main/resources/application-airport.yml Ver fichero

@@ -13,7 +13,7 @@ tuoheng:
# OSS域名
oss-url: https://ta-tech-image.oss-cn-shanghai.aliyuncs.com
# 机场域名
airport-url: http://124.223.218.130:9060/
airport-url: https://airport.t-aaron.com/
# 视频域名
video-url: https://vod.play.t-aaron.com/
# 高德Key
@@ -22,9 +22,9 @@ tuoheng:
live-channel-domain-url: https://streaming.t-aaron.com/
# DSP服务域名
#dsp-domain-url: http://192.168.11.241:1011/
dsp-domain-url: http://139.196.193.144:47821/
dsp-domain-url: https://dsp-portal.t-aaron.com/
# DSP回调地址
dsp-callback-url: http://139.196.193.144:9099/api/question/{requestId}/callback
dsp-callback-url: https://lcxj.t-aaron.com/api/question/{requestId}/callback
#阿里云
aliyuncsVod:
accessKeyId: LTAI5tE7KWN9fsuGU7DyfYF4

+ 1
- 1
tuoheng-admin/src/main/resources/application-dev.yml Ver fichero

@@ -13,7 +13,7 @@ tuoheng:
# OSS域名
oss-url: https://ta-tech-image.oss-cn-shanghai.aliyuncs.com
# 机场域名
airport-url: http://124.223.218.130:9060/
airport-url: https://airport.t-aaron.com/
# 视频域名
video-url: https://vod.play.t-aaron.com/
# 高德Key

+ 1
- 1
tuoheng-admin/src/main/resources/application-local.yml Ver fichero

@@ -13,7 +13,7 @@ tuoheng:
# OSS域名
oss-url: https://ta-tech-image.oss-cn-shanghai.aliyuncs.com
# 机场域名
airport-url: http://124.223.218.130:9060/
airport-url: https://airport.t-aaron.com/
# 视频域名
video-url: http://vod.play.t-aaron.com/
# 高德Key

+ 68
- 61
tuoheng-admin/src/main/resources/application-prod.yml Ver fichero

@@ -13,7 +13,7 @@ tuoheng:
# OSS域名
oss-url: https://ta-tech-image.oss-cn-shanghai.aliyuncs.com
# 机场域名
airport-url: http://124.223.218.130:9060/
airport-url: https://airport.t-aaron.com/
# 视频域名
video-url: https://vod.play.t-aaron.com/
# 高德Key
@@ -21,9 +21,10 @@ tuoheng:
# 通道地址
live-channel-domain-url: https://streaming.t-aaron.com/
# DSP服务域名
dsp-domain-url: http://192.168.11.241:1011/
dsp-domain-url: https://dsp-portal.t-aaron.com/
# DSP回调地址
dsp-callback-url: http://139.196.193.144:9099/api/question/{requestId}/callback
dsp-callback-url: https://lcxj.t-aaron.com/api/question/{requestId}/callback

#阿里云
aliyuncsVod:
accessKeyId: LTAI5tE7KWN9fsuGU7DyfYF4
@@ -34,66 +35,79 @@ aliyuncsVod:
spring:
# 配置数据源
datasource:
# 使用阿里的Druid连接池
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
# 填写你数据库的url、登录名、密码和数据库名
url: jdbc:mysql://172.16.1.22:3306/tuoheng_lc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false
username: root
password: TH22#2022
druid:
# 连接池的配置信息
# 初始连接数
initialSize: 5
name: DataSource-dsp-api-prod
driver-class-name: com.mysql.cj.jdbc.Driver
# 填写你数据库的url、登录名、密码和数据库名
url: jdbc:mysql://rm-uf6x76i111rb1eo48.mysql.rds.aliyuncs.com:3306/tuoheng_lc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false
username: root
password: TH22#2022
filter:
slf4j:
enabled: true
statement-executable-sql-log-enable: true
stat:
enabled: true
merge-sql: true
slow-sql-millis: 3000
wall:
enabled: true
# 初始化时建立物理连接的个数
initial-size: 5
# 最小连接池数量
minIdle: 5
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache,并且指定每个连接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
min-idle: 5
# 最大连接池数量 maxIdle已经不再使用
max-active: 20
# 获取连接时最大等待时间,单位毫秒。配置了maxWait之后,缺省启用公平锁,并发效率会有所下降,
# 如果需要可以通过配置useUnfairLock属性为true使用非公平锁。
max-wait: 6000
use-unfair-lock: true
# 申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
test-while-idle: true
# 既作为检测的间隔时间又作为testWhileIdel执行的依据
time-between-eviction-runs-millis: 60000
# 销毁线程时检测当前连接的最后活动时间和当前时间差大于该值时,关闭当前连接
min-evictable-idle-time-millis: 30000
#用来检测连接是否有效的sql 必须是一个查询语句
#mysql中为 select 'x'
#oracle中为 select 1 from dual
validation-query: select 1
#申请连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
test-on-borrow: false
#归还连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
test-on-return: false
# 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
pool-prepared-statements: true
# 要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。在Druid中,
# 不会存在Oracle下PSCache占用内存过多的问题,可以把这个数值配置大一些,比如说100
maxOpenPreparedStatements: 100
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: stat,wall,log4j
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
# 配置DruidStatFilter
webStatFilter:
enabled: true
url-pattern: "/*"
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
# 配置DruidStatViewServlet
statViewServlet:
url-pattern: "/druid/*"
# IP白名单(没有配置或者为空,则允许所有访问)
allow: 127.0.0.1,192.168.163.1
# IP黑名单 (存在共同时,deny优先于allow)
deny: 192.168.1.73
# 禁用HTML页面上的“Reset All”功能
reset-enable: false
# 登录名
# 配置监拉统计挡成的filters. stat: 监控统计、Log4j:日志记录、waLL: 防御sqL注入
# 如果启用日志记录时报错java.lang.ClassNotFoundException: org.apache.log4j.Priority
# 则导入Log4j 依赖即时,Maven 地址: https://mvnrepository. com/artifact/log4j/log4
max-pool-prepared-statement-per-connection-size: 20
stat-view-servlet:
url-pattern: /druid/*
# IP 白名单,没有配置或者为空,则允许所有访问
allow:
# IP 黑名单,若白名单也存在,则优先使用
deny: 192.168.15.21
# 登录用户名/密码
login-username: admin
# 登录密码
login-password: 123456
enabled: true # 不配置,则打不开控制台页面
web-stat-filter:
enabled: true
session-stat-enable: false
url-pattern: /*
exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"

# Redis数据源
redis:
# 缓存库默认索引0
database: 0
# Redis服务器地址
host: 127.0.0.1
host: r-uf6r5lm7c7sfdv3ehb.redis.rds.aliyuncs.com
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
@@ -142,14 +156,7 @@ spring:
regionId: cn-hangzhou
signName: 拓恒
templateCode:
kafka:
common:
enable: false
bootstrap-servers: 101.132.127.1:19092
alg-online-results-topic: alg-task-results
alg-online-results-group-id: alg-task-group-prod
alg-offline-tasks-topic: alg-offline-tasks
alg-online-tasks-topic: alg-online-tasks

file:
#上传的服务器上的映射文件夹
accessPath: /uploads/
@@ -206,7 +213,7 @@ xxl:
enable: false
job:
admin:
addresses: http://172.16.1.31:8110/xxl-job-admin
addresses: https://xxl-job.t-aaron.com/xxl-job-admin/
accessToken: tuoheng
executor:
appname: xxl-job-executor-lc

+ 1
- 1
tuoheng-admin/src/main/resources/application-test.yml Ver fichero

@@ -13,7 +13,7 @@ tuoheng:
# OSS域名
oss-url: https://ta-tech-image.oss-cn-shanghai.aliyuncs.com
# 机场域名
airport-url: http://124.223.218.130:9060/
airport-url: https://airport.t-aaron.com/
# 视频域名
video-url: https://vod.play.t-aaron.com/
# 高德Key

Cargando…
Cancelar
Guardar