Files
community/community-import/src/main/resources/application.yml
T

47 lines
1.3 KiB
YAML

spring:
main:
web-application-type: none
banner-mode: off
sql:
init:
mode: never
datasource:
url: ${DB_URL:jdbc:mysql://localhost:3306/community?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC}
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:}
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 4
connection-timeout: 5000
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
community:
oss:
# 导入只转换资源地址,永不启用 OSS SDK 或校验上传凭据。
enabled: false
region: ${OSS_REGION:cn-beijing}
bucket: ${OSS_BUCKET:linkerbot}
access-key-id: ${OSS_ACCESS_KEY_ID:}
access-key-secret: ${OSS_ACCESS_KEY_SECRET:}
public-base-url: ${OSS_PUBLIC_BASE_URL:https://linkerbot.oss-cn-beijing.aliyuncs.com}
legacy-public-base-urls: ${OSS_LEGACY_PUBLIC_BASE_URLS:}
root-directory: vibemake_dev
gitea:
base-url: ${GITEA_BASE_URL:http://localhost:3000}
owner: ${GITEA_ORGANIZATION:community}
token: ${GITEA_TOKEN:}
logging:
level:
root: WARN
com.linkerbot.community: INFO
com.linkerbot.community.service.mapper: WARN
---
spring:
config:
activate:
on-profile: prod
community:
oss:
root-directory: vibemake