add host property to config
parent
8ccb814923
commit
e5eebef7b1
|
@ -1,5 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
server_port:44444,
|
server_port:44444,
|
||||||
|
host:"127.0.0.1",
|
||||||
local_features_microservice_url:"http://127.0.0.1:33333",
|
local_features_microservice_url:"http://127.0.0.1:33333",
|
||||||
global_features_microservice_url:"http://127.0.0.1:33334",
|
global_features_microservice_url:"http://127.0.0.1:33334",
|
||||||
color_microservice_url:"http://127.0.0.1:33335",
|
color_microservice_url:"http://127.0.0.1:33335",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
server_port:44444,
|
server_port:44444,
|
||||||
|
host:"0.0.0.0",
|
||||||
local_features_microservice_url:"http://local_features_web:33333",
|
local_features_microservice_url:"http://local_features_web:33333",
|
||||||
global_features_microservice_url:"http://global_features_web:33334",
|
global_features_microservice_url:"http://global_features_web:33334",
|
||||||
color_microservice_url:"http://color_web:33335",
|
color_microservice_url:"http://color_web:33335",
|
||||||
|
|
|
@ -148,7 +148,7 @@ server.post("/get_image_caption", (_req, res) => {
|
||||||
})
|
})
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
server.listen({port:port, host:"0.0.0.0"}, function (err, address) {
|
server.listen({port:port, host:config.host}, function (err, address) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue