listen on host
This commit is contained in:
parent
c7ce387685
commit
38214f9d8a
@ -1,7 +1,9 @@
|
||||
# Server configuration
|
||||
[server]
|
||||
# Port the server will run on
|
||||
# Port the server will listen on
|
||||
port=8282
|
||||
# Hostname the server will listen on
|
||||
host="localhost"
|
||||
# Session key
|
||||
session_key="Session"
|
||||
# Session secret (keep this a secret)
|
||||
|
@ -91,8 +91,9 @@ module.exports = (args) => {
|
||||
|
||||
app.use(routes)
|
||||
|
||||
app.listen(args.port, () => {
|
||||
console.log('Listening on 0.0.0.0:' + args.port)
|
||||
const host = args.host || 'localhost'
|
||||
app.listen(args.port, host, () => {
|
||||
console.log('Listening on %s:%s', host, args.port)
|
||||
|
||||
// Initialize the email transporter (if configured)
|
||||
initEmail()
|
||||
|
Reference in New Issue
Block a user