Adding database configuration - wip

This commit is contained in:
2024-09-05 01:52:07 +02:00
parent b638c48104
commit 998a4d5ab9
13 changed files with 210 additions and 8 deletions

View File

@@ -6,6 +6,13 @@
"Version": "v1.0",
"Description": "This template contains basic configuration for a .Net 8 backend"
},
"DatabaseSettings": {
"SqlServerConnectionString": "Server=SQLSERVER_DB_SERVER;Initial Catalog=SQLSERVER_DB_DATABASE;User Id=SQLSERVER_DB_USER;Password=SQLSERVER_DB_PASSWORD;MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;",
"MongoDbSettings": {
"MongoDbConnectionString": "mongodb://MONGODB_DB_USER:MONGODB_DB_PASSWORD@MONGODB_DB_SERVER:27017/MONGODB_DB_DATABASE",
"DatabaseName": "BaseDb"
}
},
"OpenApiSettings": {
"TermsOfServiceUrl": "",
"OpenApiContact": {
@@ -16,7 +23,12 @@
"Name": "MIT License",
"Url": "https://github.com/csimonapastore/BasicDotnetTemplate/blob/main/LICENSE.md"
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
}