生产配置

This commit is contained in:
hui
2025-01-12 10:07:49 +08:00
parent 412e8cd362
commit 1f02bb419a
4 changed files with 159 additions and 42 deletions

View File

@@ -2,8 +2,8 @@ spring:
# application.yml
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
max-file-size: 1000MB
max-request-size: 1000MB
redis:
database: 1
host: 10.251.129.122
@@ -36,16 +36,6 @@ spring:
static-locations: file:E:/Projects/BOE/10/static
server:
port: 9090
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
session:
timeout: 30m
encoding:
charset: UTF-8
enabled: true
force: true
tomcat:
uri-encoding: UTF-8
servlet:

View File

@@ -0,0 +1,88 @@
spring:
servlet:
multipart:
max-file-size: 1000MB
max-request-size: 1000MB
web:
resources:
static-locations: file:E:/Projects/BOE/java/static
cloud:
nacos:
discovery:
server-addr: 10.251.113.100:8848
config:
server-addr: 10.251.113.100:8848
redis:
database: 1
host: 10.251.88.213
password: qwert!W588
port: 6379
jpa:
hibernate:
ddl-auto: none
datasource:
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://10.251.88.216:3306/boe_base?useSSL=false&useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull
username: admin
password: boeRds01
type: com.zaxxer.hikari.HikariDataSource
hikari:
auto-commit: true
minimum-idle: 5
idle-timeout: 60000
connection-timeout: 30000
max-lifetime: 1800000
maximum-pool-size: 20
logging:
level:
org:
hibernate:
SQL: ERROR
config: classpath:log/logback-@profileActive@.xml
xboe:
api:
cross_filter: true
upload:
file:
temp_path: /tmp
save_path: /home/www/elearning/upload
http_path: https://u.boe.com/upload
externalinterface:
url:
system: http://127.0.0.1:9091
old:
base:
url: https://u.boe.com
stat:
base:
url: http://127.0.0.1:9080
server:
userbasic:
url: https://u.boe.com/userbasic
elasticsearch:
server:
ip: 10.251.88.218
port: 9200
user:
password:
email:
url: https://u.boe.com/api/b1/email/send
from: boeu_learning@boe.com.cn
user:
security:
jasypt:
encryptor:
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
xxl:
job:
admin:
addresses: http://u.boe.com/jobAdmin
accessToken: 65ddc683-22f5-83b4-de3a-3c97a0a29af0
executor:
appname: java-servers-job-api
port: 9995
address:
ip:
logpath: /var/log/xxl-job/dw/
logretentiondays: 30

View File

@@ -1,13 +1,76 @@
#获取离职教师id
spring:
profiles:
active: "@profileActive@"
application:
name: boe-server-all
redis:
lettuce:
pool:
max-active: 8
min-idle: 0
max-idle: 30
max-wait: 10000ms
shutdown-timeout: 100ms
jackson:
time-zone: GMT+8
mvc:
static-path-pattern: /cdn/**
jpa:
database: MYSQL
show-sql: false
properties:
hibernate:
naming_strategy: org.hibernate.cfg.EJB3NamingStrategy
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
logging:
config: classpath:log/logback-@profileActive@.xml
server:
port: 9090
tomcat:
uri-encoding: UTF-8
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
session:
timeout: 30m
encoding:
charset: UTF-8
enabled: true
force: true
ok:
http:
connect-timeout: 30
read-timeout: 30
write-timeout: 30
max-idle-connections: 200
keep-alive-duration: 300
boe:
domain: http://127.0.0.1
orgTree:
orgTreeList: ${boe.domain}/userbasic/org/list
orgChildTreeList: ${boe.domain}/userbasic/org/childOrgs
userBasic:
searchUserList: ${boe.domain}/userbasic/user/list
getTeacherIds: ${boe.domain}/userbasic/user/getTeacherInfo
getUserBasicInfo: ${boe.domain}/userbasic/user/getUserBasicInfo
#讲师管理创建或修改在线课授课记录
audience:
usersByAudienceList: ${boe.domain}/userbasic/audience/memberList
getOrgUsers: ${boe.domain}/userbasic/user/getOrgUsers
statApi:
userdynamicList: ${boe.domain}/statApi/xboe/m/stat/userdynamic/list
infrasApi:
dict: ${boe.domain}/infrasApi/dict/list
manageApi:
stu:
offcourse: ${boe.domain}/manageApi/stu/offcourse/getOffCourseId
editExam: ${boe.domain}/manageApi/admin/project/editExam
coursesuilt:
getStudyStatus: ${boe.domain}/manageApi/stu/project/completeStatus
updateOrSaveCourse: ${boe.domain}/manageApi/admin/teacherRecord/updateOrSaveCourse
syncCourseStudent: ${boe.domain}/manageApi/admin/teacherRecord/syncCourseStudent
syncOnLineScore: ${boe.domain}/manageApi/admin/teacherRecord/syncOnLineScore
updateOnLineStatua: ${boe.domain}/manageApi/admin/teacherRecord/updateOnLineStatua
getStudyStatus: ${boe.domain}/manageApi/stu/project/completeStatus
updateOnLineStatua: ${boe.domain}/manageApi/admin/teacherRecord/updateOnLineStatua

View File

@@ -1,24 +0,0 @@
spring:
application:
name: boe-server-all
# profiles:
# active: dev
cloud:
nacos:
discovery:
server-addr: 10.251.129.51:8848
config:
server-addr: 10.251.129.51:8848
# file-extension: yaml
# namespace: fd5741ee-c2aa-4002-a9b0-43a11436d35c
# name: boe-server-all
# group: SERVER_GROUP
# extension-configs:
# - data-id: redis0.yaml
# group: COMMON_GROUP
# refresh: true
# shared-configs:
# - data-id: redis0.yaml
# group: COMMON_GROUP
# refresh: true