feat: Add internal chat system and network access support

- Add messages table schema with soft delete support
- Add message service, controller and routes
- Update CORS to allow local network IPs
- Update server to listen on 0.0.0.0
- Fix cookie sameSite for local network development

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
richardtekula
2026-01-15 10:13:14 +01:00
parent 70fa080455
commit 2a9377ce3d
7 changed files with 470 additions and 9 deletions

View File

@@ -11,9 +11,9 @@ const start = async () => {
await testConnection();
logger.success('Database connected');
// Start server
app.listen(port, () => {
logger.info(`Server running on http://localhost:${port}`);
// Start server - listen on all interfaces for network access
app.listen(port, '0.0.0.0', () => {
logger.info(`Server running on http://0.0.0.0:${port}`);
startAllCronJobs();
});
} catch (error) {