Initial commit

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
liu
2026-02-03 10:10:11 +08:00
commit 14289beb66
45 changed files with 15479 additions and 0 deletions

View 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