Files
Notemark/appsettings.json
Michal Vrba fe8fa73692 Add SignalR/WebSocket config and large upload support
Configured SignalR and WebSockets for improved reliability and large content handling. Added appsettings and web.config for production/IIS, including increased timeouts, message size limits, and security/compression settings. Added fallback to Long Polling if WebSockets fail.
2026-01-30 17:26:01 +01:00

54 lines
1.3 KiB
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.AspNetCore.SignalR": "Information",
"Microsoft.AspNetCore.Http.Connections": "Information"
},
"Console": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Warning"
}
}
},
"AllowedHosts": "*",
"Kestrel": {
"Limits": {
"MaxRequestBodySize": 104857600,
"RequestHeadersTimeout": "00:01:00",
"KeepAliveTimeout": "00:02:00",
"MaxRequestHeaderCount": 100,
"MaxRequestHeadersTotalSize": 65536,
"MaxRequestLineSize": 8192,
"MaxRequestBufferSize": 1048576,
"MaxResponseBufferSize": 1048576
},
"EndPoints": {
"Http": {
"Url": "http://localhost:5000"
}
}
},
"SignalR": {
"SupportedProtocols": [ "WebSockets", "LongPolling" ],
"ClientTimeoutInterval": "00:02:00",
"KeepAliveInterval": "00:00:30",
"HandshakeTimeout": "00:00:30",
"MaximumReceiveMessageSize": 1048576,
"StreamBufferCapacity": 10,
"EnableDetailedErrors": false
},
"ConnectionStrings": {},
"AppSettings": {
"DataPath": "data",
"MaxFileSize": 104857600,
"SessionTimeout": "30.00:00:00",
"ShareTokenExpiry": "365.00:00:00"
}
}