proj: switch to secure connection

This commit is contained in:
2026-06-28 17:40:07 +02:00
parent 2bb5125254
commit 81ddf048ca
9 changed files with 903 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
import express from 'express';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const app = express();
app.use(express.static(path.join(__dirname, 'dist')));
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});
const PORT = process.env.PORT || 80;
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});