Commit 02c32f04 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

add hostname puresky.fr

parent c67e56e5
......@@ -6,12 +6,17 @@ const requestIp = require('request-ip');
const compression = require('compression');
const helmet = require('helmet');
// PORT
// PORT & HOSTNAME
const port = 6000;
app.listen(port, () => console.log(`Listening on port ${port}...`));
const hostname = 'phonodrop.puresky.fr';
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
app.use(express.json());
app.use(express.static('public'));
// app.use(express.static('public'));
app.use('/static', express.static(__dirname + '/public'));
app.use(compression()); // Compress all routes
app.use(helmet()); // Protection de base pour l'appli
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment