Commit 2a02d0ff authored by gaoyingwei's avatar gaoyingwei

修改 配置文件

parent 9c566ffa
...@@ -18,6 +18,17 @@ mybatis-plus: ...@@ -18,6 +18,17 @@ mybatis-plus:
logic-delete-value: 1 # 逻辑已删除值(默认为 1) logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
jwt:
header: Authorization
secret: mySecret
expiration: 604800
tokenHead: "Bearer "
route:
authentication:
path: "/login"
refresh: "/refresh"
register: "/register"
# ------------spring component------------------ # ------------spring component------------------
spring: spring:
main: main:
...@@ -78,9 +89,6 @@ spring: ...@@ -78,9 +89,6 @@ spring:
max-idle: 16 max-idle: 16
max-wait: 300ms max-wait: 300ms
min-idle: 8 min-idle: 8
mongodb:
uri: mongodb://${cy_mongodb.username}:${cy_mongodb.password}@${cy_mongodb.ip}:${cy_mongodb.port}/${cy_mongodb.db}?authSource=${cy_mongodb.authDb}
transactionEnabled: true
# 5. rdbms # 5. rdbms
datasource: datasource:
...@@ -100,14 +108,6 @@ spring: ...@@ -100,14 +108,6 @@ spring:
password: ${cy_db.password} password: ${cy_db.password}
minio:
endpoint: ${cy_minio.endpoint}
writeAccessKey: ${cy_minio.writeAccessKey}
writeSecretKey: ${cy_minio.writeSecretKey}
readAccessKey: ${cy_minio.readAccessKey}
readSecretKey: ${cy_minio.readSecretKey}
springdoc: springdoc:
swagger-ui: swagger-ui:
path: /swagger-ui.html path: /swagger-ui.html
...@@ -182,26 +182,10 @@ snowflake: ...@@ -182,26 +182,10 @@ snowflake:
nodeId: ${SNOWFLAKE_NODE_ID:00000} nodeId: ${SNOWFLAKE_NODE_ID:00000}
rocketmq: global:
# 服务地址,多个用逗号分开 path:
name-server: ${cy_rocketMq.ns} fileUploadFormatRestrictions: ".exe,.php,.asp,.jsp,.aspx"
producer: code_generate_location: /code
# 发送消息超时时间,默认3000 temp_location: /temp
send-message-timeout: 30000
# 生产者组
group: springboot_producer_group
# 发送消息失败重试次数,默认2
retryTimesWhenSendFailed: 2
# 异步消息重试此处,默认2
retryTimesWhenSendAsyncFailed: 2
# 消息最大长度,默认1024 * 1024 * 4(默认4M)
maxMessageSize: 4096
# 压缩消息阈值,默认4k(1024 * 4)
compressMessageBodyThreshold: 4096
# 是否在内部发送失败时重试另一个broker,默认false
retryNextServer: false
consumer:
group: springboot_consumer_group
# 一次拉取消息最大值,注意是拉取消息的最大值而非消费最大值
pull-batch-size: 10
...@@ -70,35 +70,10 @@ cy: ...@@ -70,35 +70,10 @@ cy:
# 是否开启登录拦截 # 是否开启登录拦截
secure: false secure: false
security: security:
enable: true
permission: false
defaultFilter: true
gateway: false
acAllowOrigin: '*'
acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT'
acAllowHeaders: '*'
permit-all: permit-all:
permitUnStatic: permitUnStatic:
- "/static/**" - "/**/**"
- "/webjars/**"
- "/v3/**"
- "/swagger-resources/**"
- "/api-docs/**"
- "/auth/**"
- "/code/**/**"
- "/excelUtil/**"
- "/captcha/**"
#- "/cros/**"
- "/nlttest/add/**"
- "/common/getKSA"
- "/office/getFile"
- "/office/callback"
- "/app/open/**"
- "/app/wxMiniApp/**"
permitStatic: [ "/", "/*.html", "/favicon.ico", "/**/*.html", "/**/*.js", "/**/*.css","/swagger-ui/*" ]
logoutSuccessUrl: "/login"
loginPage: "/login"
loginfailureUrl: "/login-error.html"
# 注册 # 注册
register: register:
...@@ -163,9 +138,6 @@ global: ...@@ -163,9 +138,6 @@ global:
path: path:
base_upload_location: D:\soft\nginx-1.24.0\html\upload base_upload_location: D:\soft\nginx-1.24.0\html\upload
base_discovery: 'http://192.168.1.80/upload/' base_discovery: 'http://192.168.1.80/upload/'
fileUploadFormatRestrictions: ".exe,.php,.asp,.jsp,.aspx"
code_generate_location: /code
temp_location: /temp
code: code:
admin: ROLE_1001 admin: ROLE_1001
resetPassword: 123456 resetPassword: 123456
...@@ -174,6 +146,7 @@ global: ...@@ -174,6 +146,7 @@ global:
endpoint: "oss-cn-beijing.aliyuncs.com" endpoint: "oss-cn-beijing.aliyuncs.com"
putAcessKey: putAcessKey:
putSecretKey: putSecretKey:
expirationTime: 1800
logging: logging:
config: ./config/logback-spring.xml config: ./config/logback-spring.xml
......
#---------------------自定义配置---------------------------- #---------------------自定义配置----------------------------
jwt:
header: Authorization
secret: mySecret
expiration: 604800
tokenHead: "Bearer "
route:
authentication:
path: "/login"
refresh: "/refresh"
register: "/register"
cy: cy:
systemName: "91isoft" systemName: "91isoft"
init: init:
...@@ -51,8 +41,6 @@ cy: ...@@ -51,8 +41,6 @@ cy:
fileStorage: fileStorage:
model: local model: local
fileTemplate: UUID fileTemplate: UUID
webService:
enable: true
ssl: ssl:
enable: false enable: false
opeLogDb: opeLogDb:
...@@ -109,4 +97,32 @@ cy: ...@@ -109,4 +97,32 @@ cy:
stringOutputType: base644 stringOutputType: base644
#身份证、邮箱、手机号存储加密 #身份证、邮箱、手机号存储加密
aesSecret: 'PLMOKNIJBU' aesSecret: 'PLMOKNIJBU'
security:
enable: true
permission: false
defaultFilter: true
gateway: false
acAllowOrigin: '*'
acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT'
acAllowHeaders: '*'
permit-all:
permitUnStatic:
- "/static/**"
- "/webjars/**"
- "/v3/**"
- "/swagger-resources/**"
- "/api-docs/**"
- "/auth/**"
- "/code/**/**"
- "/excelUtil/**"
- "/captcha/**"
#- "/cros/**"
- "/common/getKSA"
- "/office/getFile"
- "/office/callback"
- "/app/open/**"
- "/app/wxMiniApp/**"
permitStatic: [ "/", "/*.html", "/favicon.ico", "/**/*.html", "/**/*.js", "/**/*.css","/swagger-ui/*" ]
logoutSuccessUrl: "/login"
loginPage: "/login"
loginfailureUrl: "/login-error.html"
...@@ -64,33 +64,7 @@ cy: ...@@ -64,33 +64,7 @@ cy:
captcha: 1 captcha: 1
# 是否开启登录拦截 # 是否开启登录拦截
secure: false secure: false
security:
enable: true
permission: false
defaultFilter: true
gateway: false
acAllowOrigin: '*'
acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT'
acAllowHeaders: '*'
permit-all:
permitUnStatic:
- "/static/**"
- "/webjars/**"
- "/v3/**"
- "/swagger-resources/**"
- "/api-docs/**"
- "/auth/**"
- "/code/**/**"
- "/excelUtil/**"
- "/captcha/**"
- "/office/getFile"
- "/office/callback"
#- "/cros/**"
- "/common/getKSA"
permitStatic: [ "/", "/*.html", "/favicon.ico", "/**/*.html", "/**/*.js", "/**/*.css","/swagger-ui/*" ]
logoutSuccessUrl: "/login"
loginPage: "/login"
loginfailureUrl: "/login-error.html"
# 注册 # 注册
register: register:
...@@ -155,9 +129,6 @@ global: ...@@ -155,9 +129,6 @@ global:
path: path:
base_upload_location: /working/resource/eduServer/ base_upload_location: /working/resource/eduServer/
base_discovery: 'http://192.168.1.12:8888/eduServer/' base_discovery: 'http://192.168.1.12:8888/eduServer/'
fileUploadFormatRestrictions: ".exe,.php,.asp,.jsp,.aspx"
code_generate_location: /code
temp_location: /temp
code: code:
admin: ROLE_1001 admin: ROLE_1001
resetPassword: 123456 resetPassword: 123456
......
...@@ -2,7 +2,5 @@ spring: ...@@ -2,7 +2,5 @@ spring:
profiles: profiles:
active: dev active: dev
group: group:
dev: dev-conf,common,spbt dev: spbt,dev-conf,common
prod: prod-conf,common,spbt test: spbt,test-conf,common
kube: kube-conf,common,spbt
test: test-conf,common,spbt
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment