pre release
This commit is contained in:
1 parent
66cd208b61
commit
89d85b4369
13 files changed
+532
-84
No files matched your search
+5
-2
@@ -12,11 +12,14 @@ const httpServer = createServer(app);
|
||||
|
||||
// Socket.io inicializálás
|
||||
const io = new Server(httpServer, {
|
||||
// Nginx proxy mögötti CORS - fejlesztési módban engedékenyebb
|
||||
// Nginx proxy mögötti CORS - fejlesztési módban engedékenyebb.
|
||||
// Production: same-origin (a kliens ugyanarról a domainről csatlakozik), külső origin tiltva.
|
||||
cors: {
|
||||
origin: process.env.NODE_ENV === 'production' ? false : '*',
|
||||
methods: ['GET', 'POST']
|
||||
}
|
||||
},
|
||||
// Beérkező üzenet maximális mérete DoS ellen (1MB)
|
||||
maxHttpBufferSize: 1024 * 1024
|
||||
});
|
||||
|
||||
// Socket logika beállítása
|
||||
|
||||
Reference in new issue
Block a user