Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 78bd0d4f authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

add hostname puresky.fr plus middleware http

parent 02c32f04
......@@ -5,8 +5,15 @@ const fs = require('fs');
const requestIp = require('request-ip');
const compression = require('compression');
const helmet = require('helmet');
const http = require('http');
// PORT & HOSTNAME
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Démarrage !\n');
});
const port = 6000;
const hostname = 'phonodrop.puresky.fr';
server.listen(port, hostname, () => {
......
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