63 lines
1.8 KiB
Properties
63 lines
1.8 KiB
Properties
# Common application settings
|
|
spring.application.name=ftp-sync-tool
|
|
server.port=8080
|
|
spring.main.banner-mode=off
|
|
|
|
# H2 file mode to persist checkpoints and retry state
|
|
spring.datasource.url=jdbc:h2:file:./data/ftp-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
|
|
|
|
# Common sync settings
|
|
sync.node-id=default-node
|
|
sync.role=UNSET
|
|
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
|
|
sync.ack-scan-batch-size=50
|
|
|
|
# FTP defaults
|
|
ftp.host=127.0.0.1
|
|
ftp.port=21
|
|
ftp.username=replace-me
|
|
ftp.password=replace-me
|
|
ftp.passive-mode=true
|
|
ftp.base-dir=/sync
|
|
ftp.connect-timeout-ms=10000
|
|
ftp.data-timeout-ms=20000
|
|
ftp.buffer-size=8192
|
|
|
|
# Git defaults
|
|
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
|
|
git.repo.scan-branch=config-dev-main
|
|
git.repo.snapshot-branch=config-prod-snapshot
|
|
git.repo.commit-author-name=ftp-sync-bot
|
|
git.repo.commit-author-email=ftp-sync-bot@example.com
|
|
git.repo.commit-message-prefix=sync(prod->git)
|
|
git.repo.pull-rebase=false
|
|
|
|
# Production API defaults
|
|
prod.api.base-url=https://prod.example.com
|
|
prod.api.push-path=/api/config/push
|
|
prod.api.pull-path=/api/config/pull
|
|
prod.api.token=replace-me
|
|
prod.api.connect-timeout-ms=10000
|
|
prod.api.read-timeout-ms=30000
|
|
|
|
# Keep profile specific cron expressions in application-<profile>.properties
|