Fix: FormularioAviso Bloqueo Edit Tel. - Limit Request Body 100Mb
This commit is contained in:
@@ -20,7 +20,11 @@ var builder = WebApplication.CreateBuilder(args);
|
|||||||
builder.Configuration.AddEnvironmentVariables();
|
builder.Configuration.AddEnvironmentVariables();
|
||||||
|
|
||||||
// 🔒 KESTREL HARDENING
|
// 🔒 KESTREL HARDENING
|
||||||
builder.WebHost.ConfigureKestrel(options => options.AddServerHeader = false);
|
builder.WebHost.ConfigureKestrel(options =>
|
||||||
|
{
|
||||||
|
options.AddServerHeader = false;
|
||||||
|
options.Limits.MaxRequestBodySize = 104857600; // 100 MB
|
||||||
|
});
|
||||||
|
|
||||||
// LOGGING
|
// LOGGING
|
||||||
builder.Logging.ClearProviders();
|
builder.Logging.ClearProviders();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ server {
|
|||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
# Seguridad: Limitar tamaño de subida para prevenir DoS
|
# Seguridad: Limitar tamaño de subida para prevenir DoS
|
||||||
client_max_body_size 20M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
# Sitemap dinámico (generado por backend en volumen compartido)
|
# Sitemap dinámico (generado por backend en volumen compartido)
|
||||||
location = /sitemap.xml {
|
location = /sitemap.xml {
|
||||||
|
|||||||
@@ -1376,7 +1376,7 @@ export default function FormularioAviso({
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={contactData.phone}
|
value={contactData.phone}
|
||||||
disabled={isAdmin}
|
disabled
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const val = e.target.value;
|
const val = e.target.value;
|
||||||
setContactData({
|
setContactData({
|
||||||
@@ -1390,7 +1390,7 @@ export default function FormularioAviso({
|
|||||||
placeholder={
|
placeholder={
|
||||||
isAdmin
|
isAdmin
|
||||||
? "Selecciona o crea un vendedor arriba"
|
? "Selecciona o crea un vendedor arriba"
|
||||||
: "+54 9 221 ..."
|
: "Modificable en tu perfil"
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user