fix: Increase ingress and server body size limits to resolve 413 errors and add related documentation.
All checks were successful
Build and Deploy / build (push) Successful in 1m30s

This commit is contained in:
2025-12-18 11:47:10 +01:00
parent 87e38bd0a3
commit e31323859f
5 changed files with 22 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ define(['./workbox-5a5d9309'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.7uegorivig4"
"revision": "0.afjkvsk6jt"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

View File

@@ -17,7 +17,7 @@ const __dirname = path.dirname(__filename);
const app = express();
const httpServer = createServer(app);
const io = new Server(httpServer, {
maxHttpBufferSize: 300 * 1024 * 1024, // 300MB
maxHttpBufferSize: 1024 * 1024 * 1024, // 1GB (Unlimited for practical use)
cors: {
origin: "*", // Adjust for production,
methods: ["GET", "POST"]
@@ -33,7 +33,7 @@ const packGeneratorService = new PackGeneratorService();
const cardParserService = new CardParserService();
const PORT = process.env.PORT || 3000;
app.use(express.json({ limit: '50mb' })); // Increase limit for large card lists
app.use(express.json({ limit: '1000mb' })); // Increase limit for large card lists
// Serve static images (Nested)
app.use('/cards', express.static(path.join(__dirname, 'public/cards')));