FtpTool/src/main/resources/application.properties
2026-04-28 15:55:38 +08:00

90 lines
3.0 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 应用基础配置
spring.application.name=git-direct-sync-tool
server.port=8080
spring.main.banner-mode=off
# H2 文件库。
# 用于持久化同步检查点、任务状态和 ACK 重试元数据。
spring.datasource.url=jdbc:h2:file:./data/git-direct-sync-tool-db;AUTO_SERVER=TRUE;MODE=MYSQL
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=none
spring.jpa.open-in-view=false
spring.jpa.show-sql=false
spring.sql.init.mode=always
spring.sql.init.schema-locations=classpath:schema.sql
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
# 当前仅暴露基础健康检查和信息接口。
management.endpoints.web.exposure.include=health,info
# 同步运行公共配置
# node-id 主要用于日志定位role 会被具体 profile 覆盖。
sync.node-id=default-node
sync.role=UNSET
# 本地工作目录。
# staging/baseline/package 等运行期目录都会从这里派生。
sync.work-dir=./work
sync.package-temp-dir=./work/package
sync.dev-to-prod-staging-dir=./work/staging/dev-to-prod
sync.prod-to-dev-staging-dir=./work/staging/prod-to-dev
# 同步任务最大自动重试次数。
sync.max-retry-count=5
# pullConfig 返回项缺少 fileName 时使用的兜底文件名。
sync.pull-response-file-name=prod-config.json
# Git 默认配置
git.repo.local-path=./work/git/config-repo
git.repo.remote-uri=https://git.example.com/config.git
git.repo.username=replace-me
git.repo.password=replace-me
# 当前待同步的版本分支。
# 当前业务约定:分支名本身就是 configVersion。
git.repo.scan-branch=R_XXX_V3.0.3_XXX
# 生产快照分支前缀。
# PROD -> Git 实际回写目标为snapshot-branch/<configVersion>
git.repo.snapshot-branch=config-prod-snapshot
# 生产快照回写 Git 时使用的提交身份和提交信息前缀。
git.repo.commit-author-name=git-sync-bot
git.repo.commit-author-email=git-sync-bot@example.com
git.repo.commit-message-prefix=sync(prod->git)
git.repo.pull-rebase=false
# 生产接口默认配置
prod.api.base-url=https://prod.example.com
prod.api.push-path=/pic_bus_manage_monitor/configSync/pushConfig
prod.api.pull-path=/pic_bus_manage_monitor/configSync/pullConfig
prod.api.login-path=/pic_bus_manage_monitor/pam-monitor/login
# 静态 token。
# replace-me 表示未配置,运行时会自动走 login 接口取 token。
prod.api.token=replace-me
prod.api.token-header-name=token
# pullConfig 可选过滤条件。
# 这两个字段不再参与 pushConfig 参数组装,只影响拉取范围。
prod.api.airport-id=replace-me
prod.api.app-name=replace-me
# pullConfig 的精细过滤条件,可按版本或单文件定向拉取。
prod.api.pull-config-version=
prod.api.pull-file-name=
# login 接口凭证。
prod.api.login-name=
prod.api.login-password=
# HTTP 超时配置,单位毫秒。
prod.api.connect-timeout-ms=10000
prod.api.read-timeout-ms=30000
# 定时任务 cron 放在 application-<profile>.properties 中按角色覆盖。