feat: configure Swagger Bearer auth, fix CORS, Docker and deployment
- Program.cs: added Swagger with JWT Bearer security definition using
OpenApi v2 API (OpenApiSecuritySchemeReference), enabled Swagger in all
environments (not just Development), registered all new services
(ContactService, SetupService) in DI
- CORS: configurable via Cors__AllowedOrigins env var, allows all
when empty (dev-friendly)
- DoliMiddlewareApi.csproj: removed Microsoft.AspNetCore.OpenApi (conflicts
with Swashbuckle v10), kept Swashbuckle.AspNetCore 10.1.0
- appsettings.json: fixed Dolibarr ApiUrl to /api/index.php (was /explorer)
- compose.yaml: fixed Dolibarr ApiUrl, added JWT_SECRET default for dev,
added healthcheck for Dolibarr container, BFF waits for Dolibarr healthy
- .dockerignore: added to keep Docker build clean
- .env.example: template with instructions for JWT_SECRET
2026-05-15 16:58:43 +00:00
|
|
|
bin/
|
|
|
|
|
obj/
|
|
|
|
|
.vs/
|
|
|
|
|
.vscode/
|
|
|
|
|
node_modules/
|
|
|
|
|
*.user
|
|
|
|
|
*.suo
|
|
|
|
|
*.log
|
|
|
|
|
.env
|
|
|
|
|
.env.local
|
|
|
|
|
.git/
|
|
|
|
|
.gitignore
|
|
|
|
|
docker-compose*.yml
|
|
|
|
|
*.md
|
|
|
|
|
presentacion/
|
|
|
|
|
DoliMiddlewareApi.Tests/
|