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");
|
||||
});
|
||||
|
||||
// No HTTPS redirect in Docker (behind reverse proxy)
|
||||
if (!bool.TryParse(builder.Configuration["Dolibarr:ForceHttps"], out var forceHttps) || !forceHttps)
|
||||
// HTTPS redirect solo si ForceHttps=true (nunca en Docker)
|
||||
if (bool.TryParse(builder.Configuration["Dolibarr:ForceHttps"], out var forceHttps) && forceHttps)
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseRateLimiter();
|
||||
|
||||
app.UseCors("AllowVueApp");
|
||||
|
||||
app.UseRateLimiter();
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
dolibarr:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "5000:8080"
|
||||
- "5001:8080"
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- Jwt__Secret=DevDemoSecretKeyForDockerCompose2026Min32Chars!!
|
||||
|
|
|
|||
Loading…
Reference in New Issue