Harden client and WebSocket proxy
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
console.log('Starting WebSocket server');
|
||||
const wsServer = spawn('node', ['src/websocket-server.js'], {
|
||||
stdio: 'inherit',
|
||||
shell: true,
|
||||
shell: false,
|
||||
cwd: __dirname
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@ const wsServer = spawn('node', ['src/websocket-server.js'], {
|
||||
console.log('Starting SvelteKit production server');
|
||||
const sveltekit = spawn('node', ['build/index.js'], {
|
||||
stdio: 'inherit',
|
||||
shell: true,
|
||||
shell: false,
|
||||
cwd: __dirname
|
||||
});
|
||||
|
||||
@@ -41,4 +41,4 @@ process.on('SIGTERM', () => {
|
||||
wsServer.kill('SIGTERM');
|
||||
sveltekit.kill('SIGTERM');
|
||||
process.exit(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user