Update dependencies and refactor server configuration: Upgrade @vue/cli and ESLint packages, replace moment.js with date-fns for date handling in eventController, and remove unused HTTPS server configuration in server.js. Additionally, streamline Vue.js build process by removing cache and thread loaders in vue.config.js.
This commit is contained in:
11
server.js
11
server.js
@@ -1,9 +1,7 @@
|
||||
const express = require('express');
|
||||
const bodyParser = require('body-parser');
|
||||
const cors = require('cors');
|
||||
const https = require('https');
|
||||
const http = require('http');
|
||||
const fs = require('fs');
|
||||
require('dotenv').config();
|
||||
|
||||
// Erhöhe maxHttpHeaderSize für Node.js (Standard ist 8KB, erhöhe auf 16KB)
|
||||
@@ -113,16 +111,7 @@ app.use('/api/image', imageRouter);
|
||||
app.use('/api/files', filesRouter);
|
||||
app.use('/api/liturgical-days', liturgicalDaysRouter);
|
||||
|
||||
const options = {
|
||||
key: fs.readFileSync('server.key'),
|
||||
cert: fs.readFileSync('server.cert'),
|
||||
|
||||
};
|
||||
|
||||
sequelize.sync().then(() => {
|
||||
/* https.createServer(options, app).listen(PORT, () => {
|
||||
console.log(`Server läuft auf Port ${PORT}`);
|
||||
});*/
|
||||
app.listen(PORT, '0.0.0.0', () => {
|
||||
console.log(`Server läuft auf Port ${PORT} (IPv4 und IPv6)`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user