mv mongo config to secrets
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-13 02:38:48 +07:00
parent af0b834bf3
commit f066e01d21
8 changed files with 159 additions and 118 deletions
+3 -3
View File
@@ -8,10 +8,10 @@ type Config struct {
CaloriesCollectionName string
}
func NewConfig() *Config {
func NewConfig(mongoURl string, dbName string) *Config {
return &Config{
MongoURL: "mongodb://mongo:o6bbyog3DHG0GYdu@158.160.11.219:27027",
DBName: "valera",
MongoURL: mongoURl,
DBName: dbName,
ChatsCollectionName: "chats",
WorkoutsCollectionName: "workouts",
CaloriesCollectionName: "calories",