50
src/main/resources/application-prod.yml
Normal file
50
src/main/resources/application-prod.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
# 生产环境配置
|
||||
server:
|
||||
port: 8080
|
||||
servlet:
|
||||
context-path: /sftp-manager
|
||||
tomcat:
|
||||
max-threads: 200
|
||||
accept-count: 100
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:h2:file:./data/sftp-manager
|
||||
username: ${DB_USERNAME:sa}
|
||||
password: ${DB_PASSWORD:}
|
||||
hikari:
|
||||
maximum-pool-size: 10
|
||||
minimum-idle: 5
|
||||
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: false
|
||||
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 500MB
|
||||
max-request-size: 2GB
|
||||
|
||||
app:
|
||||
sftp:
|
||||
session-timeout: 60000
|
||||
connection-timeout: 30000
|
||||
max-retries: 5
|
||||
|
||||
# Actuator 生产环境暴露健康与指标
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,metrics
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
|
||||
logging:
|
||||
file:
|
||||
name: ./logs/sftp-manager.log
|
||||
level:
|
||||
root: INFO
|
||||
com.sftp.manager: INFO
|
||||
Reference in New Issue
Block a user