Add secret

This commit is contained in:
2025-02-14 10:34:16 +03:00
parent 751f4e4c04
commit 942f5eaa6f
4 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -38,5 +38,5 @@ out/
.aider*
### Secret configurations ###
src/main/resources/application-secrets.properties
###src/main/resources/application-secrets.properties
*.secrets.*
@@ -1,6 +1,10 @@
package ru.cathub.telegabot.utils;
import ru.cathub.telegabot.model.Book;
import java.sql.Date;
import java.text.SimpleDateFormat;
import static ru.cathub.telegabot.utils.Constants.*;
public class BookFormatUtils {
@@ -0,0 +1,8 @@
# Telegram configuration
bot.token=5908676914:AAGU9LVyXYZYafpRgwOf1tolk0HGYvcHszY
bot.name=TelegaBot
# Database configuration
spring.datasource.url=jdbc:postgresql://192.168.0.10:5432/telegabot
spring.datasource.username=postgres
spring.datasource.password=Vftrixpo05
@@ -1,5 +1,4 @@
spring.application.name=TelegaBot
cbr.currency.rates.xml.url=http://www.cbr.ru/scripts/XML_daily.asp
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect