Move props

This commit is contained in:
2025-02-16 16:02:00 +03:00
parent febb1b5e3c
commit b957ba5ca5
4 changed files with 17 additions and 11 deletions
@@ -4,7 +4,9 @@ import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration
@EnableConfigurationProperties
@@ -0,0 +1,12 @@
# 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}
+1 -9
View File
@@ -1,7 +1,5 @@
spring.application.name=TelegaBot
# Telegram configuration
bot.token=5908676914:AAGU9LVyXYZYafpRgwOf1tolk0HGYvcHszY
bot.name=TelegaBot
# Database configuration
@@ -11,11 +9,6 @@ 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.datasource.url=jdbc:postgresql://192.168.0.10:5432/telegabot
spring.datasource.username=postgres
spring.datasource.password=Vftrixpo05
# Flyway Configuration
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
@@ -40,6 +33,5 @@ logging.level.org.springframework.cache=INFO
# OpenRouter AI
openrouter.api.url=https://openrouter.ai/api/v1
openrouter.api.model=gryphe/mythomax-l2-13b
openrouter.api.model=deepseek/deepseek-r1-distill-qwen-32b
# Для безопасности лучше установить через переменную окружения:
openrouter.api.key=${OPENROUTER_API_KEY}
@@ -1,4 +1,4 @@
openrouter.api.url=https://openrouter.ai/api/v1
openrouter.api.model=gryphe/mythomax-l2-13b
openrouter.api.model=google/gemini-2.0-flash-001
# Ключ должен быть установлен через переменную окружения OPENROUTER_API_KEY
openrouter.api.key=${OPENROUTER_API_KEY}
openrouter.api.key=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