87 lines
1.9 KiB
YAML
87 lines
1.9 KiB
YAML
spring:
|
|
application:
|
|
name: easycard-backend
|
|
profiles:
|
|
active: docker
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 8MB
|
|
max-request-size: 8MB
|
|
datasource:
|
|
url: jdbc:mysql://mysql-shared:3306/easycard?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: root
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
data:
|
|
redis:
|
|
host: redis-shared
|
|
port: 6379
|
|
database: 0
|
|
password: 123456
|
|
flyway:
|
|
enabled: true
|
|
locations: classpath:db/migration/mysql
|
|
baseline-on-migrate: true
|
|
encoding: UTF-8
|
|
connect-retries: 30
|
|
jackson:
|
|
time-zone: Asia/Shanghai
|
|
|
|
server:
|
|
port: 8112
|
|
forward-headers-strategy: framework
|
|
servlet:
|
|
context-path: /
|
|
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: health,info
|
|
endpoint:
|
|
health:
|
|
show-details: always
|
|
|
|
springdoc:
|
|
api-docs:
|
|
enabled: true
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
|
|
mybatis-plus:
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
global-config:
|
|
db-config:
|
|
id-type: auto
|
|
logic-delete-field: deleted
|
|
logic-delete-value: 1
|
|
logic-not-delete-value: 0
|
|
|
|
easycard:
|
|
security:
|
|
jwt-secret: change-me-in-production
|
|
jwt-expire-hours: 24
|
|
web:
|
|
cors:
|
|
allowed-origins: http://localhost:5173,http://127.0.0.1:5173,http://localhost:8081,http://127.0.0.1:8081
|
|
allowed-origin-patterns: ""
|
|
allowed-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
|
|
allowed-headers: "*"
|
|
exposed-headers: Authorization
|
|
allow-credentials: true
|
|
max-age: 1800
|
|
storage:
|
|
endpoint: http://minio-shared:9000
|
|
public-endpoint: http://127.0.0.1:39000
|
|
access-key: easyflowadmin
|
|
secret-key: easyflowadmin123
|
|
bucket: easycard
|
|
|
|
logging:
|
|
file:
|
|
path: /app/logs
|
|
level:
|
|
root: INFO
|
|
com.easycard: INFO
|