some cleanup
This commit is contained in:
@@ -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
|
|
||||||
4
.git-crypt/.gitattributes
vendored
4
.git-crypt/.gitattributes
vendored
@@ -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
|
|
||||||
Binary file not shown.
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -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
|
|
||||||
Binary file not shown.
@@ -1,32 +1,19 @@
|
|||||||
{
|
{
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning",
|
|
||||||
"Microsoft.EntityFrameworkCore": "Warning"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AllowedHosts": "*",
|
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"DefaultConnection": "#{db-connection-string}#",
|
"DefaultConnection": "",
|
||||||
"HangfireConnection": "#{hangfire-connection-string}#"
|
"HangfireConnection": ""
|
||||||
},
|
},
|
||||||
"E5_CRM": {
|
"E5_CRM": {
|
||||||
"ApiKey": "#{e5-crm-api-key}#"
|
"ApiKey": ""
|
||||||
},
|
},
|
||||||
"GoogleAuth": {
|
"GoogleAuth": {
|
||||||
"ClientId": "#{google-auth-client-id}#"
|
"ClientId": ""
|
||||||
},
|
},
|
||||||
"JwtSettings": {
|
"JwtSettings": {
|
||||||
"SecretKey": "#{jwt-secret-key}#",
|
"SecretKey": ""
|
||||||
"Issuer": "#{jwt-issuer}#",
|
|
||||||
"Audience": "#{jwt-audience}#",
|
|
||||||
"ExpiryDays": 7
|
|
||||||
},
|
},
|
||||||
"Hangfire": {
|
"Hangfire": {
|
||||||
"ServerName": "#{hangfire-server-name}#",
|
"ServerName": "BimAI-Production"
|
||||||
"WorkerCount": 5,
|
|
||||||
"DashboardPath": "/hangfire"
|
|
||||||
},
|
},
|
||||||
"Kestrel": {
|
"Kestrel": {
|
||||||
"Endpoints": {
|
"Endpoints": {
|
||||||
|
|||||||
21
BimAI.API/appsettings.json
Normal file
21
BimAI.API/appsettings.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,16 +1,9 @@
|
|||||||
{
|
{
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AllowedHosts": "*",
|
|
||||||
"ApiSettings": {
|
|
||||||
"BaseUrl": "#{api-base-url}#"
|
|
||||||
},
|
|
||||||
"GoogleAuth": {
|
"GoogleAuth": {
|
||||||
"ClientId": "#{google-auth-client-id}#"
|
"ClientId": ""
|
||||||
|
},
|
||||||
|
"ApiSettings": {
|
||||||
|
"BaseUrl": ""
|
||||||
},
|
},
|
||||||
"Kestrel": {
|
"Kestrel": {
|
||||||
"Endpoints": {
|
"Endpoints": {
|
||||||
|
|||||||
9
BimAI.UI.Web/appsettings.json
Normal file
9
BimAI.UI.Web/appsettings.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,38 +11,34 @@ services:
|
|||||||
- "1433:1433"
|
- "1433:1433"
|
||||||
volumes:
|
volumes:
|
||||||
- mssql-data:/var/opt/mssql
|
- mssql-data:/var/opt/mssql
|
||||||
- ./docker/mssql/init:/docker-entrypoint-initdb.d
|
|
||||||
networks:
|
networks:
|
||||||
- bimai-network
|
- bimai-network
|
||||||
healthcheck:
|
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
|
interval: 10s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 10
|
retries: 10
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
mongodb:
|
init-mssql:
|
||||||
image: mongo:7.0
|
image: mcr.microsoft.com/mssql/server:2022-latest
|
||||||
container_name: bimai-mongodb
|
container_name: bimai-init-mssql
|
||||||
hostname: bimai-mongodb
|
restart: "no"
|
||||||
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
|
|
||||||
networks:
|
networks:
|
||||||
- bimai-network
|
- bimai-network
|
||||||
healthcheck:
|
depends_on:
|
||||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
mssql:
|
||||||
interval: 10s
|
condition: service_healthy
|
||||||
timeout: 5s
|
environment:
|
||||||
retries: 5
|
- MSSQL_SA_PASSWORD=BimAI_Dev_Pass_2024!
|
||||||
start_period: 10s
|
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:
|
networks:
|
||||||
bimai-network:
|
bimai-network:
|
||||||
@@ -51,7 +47,3 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
mssql-data:
|
mssql-data:
|
||||||
name: bimai-mssql-data
|
name: bimai-mssql-data
|
||||||
mongodb-data:
|
|
||||||
name: bimai-mongodb-data
|
|
||||||
mongodb-config:
|
|
||||||
name: bimai-mongodb-config
|
|
||||||
Reference in New Issue
Block a user