some cleanup

This commit is contained in:
2025-11-21 14:09:06 +01:00
parent 9e15afc1c2
commit cef0f73dbb
22 changed files with 412 additions and 480 deletions

View File

@@ -1,63 +0,0 @@
# Build artifacts
**/bin/
**/obj/
**/out/
**/publish/
# IDE and editor files
**/.vs/
**/.vscode/
**/.idea/
**/.DS_Store
**/*.user
**/*.suo
**/*.userosscache
**/*.sln.docstates
**/*.userprefs
**/.fleet/
# Database files
**/*.dbmdl
**/*.jfm
**/*.mdf
**/*.ldf
# Temp and swap files
**/*.swp
**/*.swo
**/*~
**/*.tmp
**/*.temp
# Logs
**/*.log
# Node modules (if any frontend dependencies)
**/node_modules/
# Git files
.git/
.gitignore
.gitattributes
.git-crypt/
# Documentation
README.md
**/*.md
LICENSE
# Docker files
docker-compose.yml
docker-compose.*.yml
**/Dockerfile
**/.dockerignore
# Development databases
docker/
# Test results
**/TestResults/
**/*.trx
# macOS
.DS_Store

View File

@@ -1,4 +0,0 @@
# Do not edit this file. To specify the files to encrypt, create your own
# .gitattributes file in the directory where your files are.
* !filter !diff
*.gpg binary

3
.gitattributes vendored
View File

@@ -1,3 +0,0 @@
BimAI.API/appsettings.Development.json filter=git-crypt diff=git-crypt
BimAI.UI.Web/appsettings.Development.json filter=git-crypt diff=git-crypt
BimAI.UI.Mobile/appsettings.Development.json filter=git-crypt diff=git-crypt

View File

@@ -1,32 +1,19 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": "#{db-connection-string}#",
"HangfireConnection": "#{hangfire-connection-string}#"
"DefaultConnection": "",
"HangfireConnection": ""
},
"E5_CRM": {
"ApiKey": "#{e5-crm-api-key}#"
"ApiKey": ""
},
"GoogleAuth": {
"ClientId": "#{google-auth-client-id}#"
"ClientId": ""
},
"JwtSettings": {
"SecretKey": "#{jwt-secret-key}#",
"Issuer": "#{jwt-issuer}#",
"Audience": "#{jwt-audience}#",
"ExpiryDays": 7
"SecretKey": ""
},
"Hangfire": {
"ServerName": "#{hangfire-server-name}#",
"WorkerCount": 5,
"DashboardPath": "/hangfire"
"ServerName": "BimAI-Production"
},
"Kestrel": {
"Endpoints": {

View File

@@ -0,0 +1,21 @@
{
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "BimAI.API",
"Audience": "BimAI.Clients",
"ExpiryDays": 7
},
"Hangfire": {
"WorkerCount": 5,
"DashboardPath": "/hangfire"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning",
"Microsoft.EntityFrameworkCore.Infrastructure": "Warning"
}
}
}

View File

@@ -1,16 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ApiSettings": {
"BaseUrl": "#{api-base-url}#"
},
"GoogleAuth": {
"ClientId": "#{google-auth-client-id}#"
"ClientId": ""
},
"ApiSettings": {
"BaseUrl": ""
},
"Kestrel": {
"Endpoints": {

View File

@@ -0,0 +1,9 @@
{
"AllowedHosts": "*",
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

View File

@@ -11,38 +11,34 @@ services:
- "1433:1433"
volumes:
- mssql-data:/var/opt/mssql
- ./docker/mssql/init:/docker-entrypoint-initdb.d
networks:
- bimai-network
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "BimAI_Dev_Pass_2024!" -Q "SELECT 1" || exit 1
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "BimAI_Dev_Pass_2024!" -C -Q "SELECT 1" || exit 1
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
mongodb:
image: mongo:7.0
container_name: bimai-mongodb
hostname: bimai-mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=BimAI_Mongo_2024!
- MONGO_INITDB_DATABASE=bimai
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
- mongodb-config:/data/configdb
- ./docker/mongodb/init:/docker-entrypoint-initdb.d
init-mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: bimai-init-mssql
restart: "no"
networks:
- bimai-network
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
depends_on:
mssql:
condition: service_healthy
environment:
- MSSQL_SA_PASSWORD=BimAI_Dev_Pass_2024!
entrypoint: >-
bash -lc "
set -e
for i in {1..30}; do
/opt/mssql-tools18/bin/sqlcmd -S bimai-mssql -U sa -P \"$$MSSQL_SA_PASSWORD\" -C -Q \"SELECT 1\" && break || sleep 2;
done;
/opt/mssql-tools18/bin/sqlcmd -S bimai-mssql -U sa -P \"$$MSSQL_SA_PASSWORD\" -C -Q \"IF NOT EXISTS (SELECT name FROM sys.databases WHERE name = N'bimai') CREATE DATABASE [bimai];\"
"
networks:
bimai-network:
@@ -51,7 +47,3 @@ networks:
volumes:
mssql-data:
name: bimai-mssql-data
mongodb-data:
name: bimai-mongodb-data
mongodb-config:
name: bimai-mongodb-config