HtmlToPdf/mvp/HtmlToPdfService.Api/appsettings.json
2025-12-11 23:35:52 +08:00

62 lines
1.2 KiB
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"HtmlToPdfService": "Debug"
}
},
"AllowedHosts": "*",
"PdfService": {
"BrowserPool": {
"MaxInstances": 10,
"MinInstances": 2,
"MaxConcurrent": 5,
"AcquireTimeout": 30000,
"BrowserArgs": [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-gpu"
],
"ExecutablePath": null
},
"DefaultPdfOptions": {
"Format": "A4",
"Landscape": false,
"PrintBackground": true,
"PreferCSSPageSize": false,
"Margin": {
"Top": "10mm",
"Right": "10mm",
"Bottom": "10mm",
"Left": "10mm"
}
},
"Storage": {
"SaveLocalCopy": true,
"LocalPath": "/app/pdfs",
"RetentionHours": 24,
"AutoCleanup": true,
"CleanupInterval": 3600
},
"Callback": {
"Enabled": true,
"DefaultUrl": "",
"Timeout": 30000,
"IncludePdfData": false,
"CustomHeaders": {}
},
"Conversion": {
"DefaultTimeout": 60000,
"DefaultWaitUntil": "networkidle2",
"MaxHtmlSize": 10485760
}
}
}