63 lines
1.7 KiB
Properties
63 lines
1.7 KiB
Properties
spring.application.name=TelegaBot
|
|
# Telegram configuration
|
|
|
|
# Database configuration
|
|
|
|
|
|
spring.jpa.hibernate.ddl-auto=validate
|
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
|
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
|
|
spring.jpa.properties.hibernate.default_schema=telegabot
|
|
spring.datasource.hikari.keepalive-time=300000
|
|
|
|
# Flyway Configuration
|
|
spring.flyway.enabled=true
|
|
spring.flyway.locations=classpath:db/migration
|
|
spring.flyway.schemas=telegabot
|
|
spring.flyway.baselineOnMigrate=true
|
|
spring.flyway.validateOnMigrate=true
|
|
|
|
|
|
# ?????????? ????????? ????????
|
|
logging.level.org.hibernate.SQL=DEBUG
|
|
|
|
# Logs the JDBC parameters passed to a query
|
|
logging.level.org.hibernate.type=TRACE
|
|
|
|
# ??????????? ????
|
|
logging.level.org.springframework.cache=INFO
|
|
|
|
# OpenRouter AI
|
|
openrouter.api.url=https://openrouter.ai/api/v1
|
|
# openrouter.api.model=google/gemini-2.5-pro-exp-03-25:free # <-- Закомментировано или удалено
|
|
# Для безопасности лучше установить через переменную окружения:
|
|
|
|
|
|
# Telegram configuration
|
|
bot.token=${BOT_TOKEN}
|
|
bot.name=${BOT_NAME}
|
|
|
|
# Database configuration
|
|
spring.datasource.url=${DB_URL}
|
|
spring.datasource.username=${DB_USER}
|
|
spring.datasource.password=${DB_PASSWORD}
|
|
|
|
|
|
# OpenRouter AI
|
|
openrouter.api.key=${OPENROUTER_API_KEY}
|
|
|
|
# Proxy Configuration (optional)
|
|
proxy.host=${PROXY_HOST:}
|
|
proxy.port=${PROXY_PORT:0}
|
|
|
|
# JobRunr Configuration
|
|
|
|
org.jobrunr.job-scheduler.enabled=true
|
|
org.jobrunr.background-job-server.enabled=true
|
|
org.jobrunr.database.type=sql
|
|
org.jobrunr.dashboard.enabled=true
|
|
org.jobrunr.database.tablePrefix=telegabot.
|
|
|
|
|
|
#logging.level.ru.cathub.telegabot=TRACE |