Merge branch 'main' of https://github.com/JavMB/dolibarr-bff
This commit is contained in:
commit
7c6ed689f6
|
|
@ -275,14 +275,14 @@ app.UseSwaggerUI(options =>
|
||||||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "DoliMiddlewareApi v1");
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "DoliMiddlewareApi v1");
|
||||||
});
|
});
|
||||||
|
|
||||||
// No HTTPS redirect in Docker (behind reverse proxy)
|
// HTTPS redirect solo si ForceHttps=true (nunca en Docker)
|
||||||
if (!bool.TryParse(builder.Configuration["Dolibarr:ForceHttps"], out var forceHttps) || !forceHttps)
|
if (bool.TryParse(builder.Configuration["Dolibarr:ForceHttps"], out var forceHttps) && forceHttps)
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
|
|
||||||
app.UseRateLimiter();
|
|
||||||
|
|
||||||
app.UseCors("AllowVueApp");
|
app.UseCors("AllowVueApp");
|
||||||
|
|
||||||
|
app.UseRateLimiter();
|
||||||
|
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
dolibarr:
|
dolibarr:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- "5000:8080"
|
- "5001:8080"
|
||||||
environment:
|
environment:
|
||||||
- ASPNETCORE_ENVIRONMENT=Production
|
- ASPNETCORE_ENVIRONMENT=Production
|
||||||
- Jwt__Secret=DevDemoSecretKeyForDockerCompose2026Min32Chars!!
|
- Jwt__Secret=DevDemoSecretKeyForDockerCompose2026Min32Chars!!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue