diff --git a/config/config.js b/config/config.js index 59456ac..7c6694d 100644 --- a/config/config.js +++ b/config/config.js @@ -1,5 +1,6 @@ export default { server_port:44444, + host:"127.0.0.1", local_features_microservice_url:"http://127.0.0.1:33333", global_features_microservice_url:"http://127.0.0.1:33334", color_microservice_url:"http://127.0.0.1:33335", diff --git a/config/config_docker.js b/config/config_docker.js index 58bbf0b..3b61c77 100644 --- a/config/config_docker.js +++ b/config/config_docker.js @@ -1,5 +1,6 @@ export default { server_port:44444, + host:"0.0.0.0", local_features_microservice_url:"http://local_features_web:33333", global_features_microservice_url:"http://global_features_web:33334", color_microservice_url:"http://color_web:33335", diff --git a/server/index.ts b/server/index.ts index a6b659d..20c73f2 100644 --- a/server/index.ts +++ b/server/index.ts @@ -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) { console.error(err) process.exit(1)