Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
02c32f04
Commit
02c32f04
authored
Apr 29, 2020
by
Sylvain Coulange
Browse files
add hostname puresky.fr
parent
c67e56e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
02c32f04
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment