mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
Merge pull request #668 from TwizzyDizzy/master
Add possibility to bind to a specific IP address
This commit is contained in:
@@ -14,6 +14,11 @@ const conf = convict({
|
|||||||
default: 'localhost',
|
default: 'localhost',
|
||||||
env: 'REDIS_HOST'
|
env: 'REDIS_HOST'
|
||||||
},
|
},
|
||||||
|
listen_address: {
|
||||||
|
format: 'ipaddress',
|
||||||
|
default: '0.0.0.0',
|
||||||
|
env: 'IP_ADDRESS'
|
||||||
|
},
|
||||||
listen_port: {
|
listen_port: {
|
||||||
format: 'port',
|
format: 'port',
|
||||||
default: 1443,
|
default: 1443,
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ app.use(
|
|||||||
|
|
||||||
app.use(pages.notfound);
|
app.use(pages.notfound);
|
||||||
|
|
||||||
app.listen(config.listen_port);
|
app.listen(config.listen_port,config.listen_address);
|
||||||
|
|||||||
Reference in New Issue
Block a user