When running the messaging-server stand alone in a differnt url the bp internal proxy always tries to redirect to localhost.
file: /botpress/packages/bp/src/core/messaging/subservices/proxy.ts
router: () => {
return http://localhost:${process.MESSAGING_PORT}
},
To Reproduce
Steps to reproduce the behavior:
Create a docker-compose file, with two services, bp and bp_msg.
In bp service, point the env var - MESSAGING_ENDPOINT=http://bp_msg:3100
docker-compose up -d
Expected behavior
A clear and concise description of what you expected to happen.
The proxy redirects to the messaging server URL.
Replace the line with
router: () => {
return process.core_env.MESSAGING_ENDPOINT ? process.core_env.MESSAGING_ENDPOINT : http://localhost:${process.MESSAGING_PORT}
},
Environment (please complete the following information):
Describe the bug
When running the messaging-server stand alone in a differnt url the bp internal proxy always tries to redirect to localhost. file: /botpress/packages/bp/src/core/messaging/subservices/proxy.ts router: () => { return
http://localhost:${process.MESSAGING_PORT}
},To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. The proxy redirects to the messaging server URL. Replace the line with router: () => { return process.core_env.MESSAGING_ENDPOINT ? process.core_env.MESSAGING_ENDPOINT :
http://localhost:${process.MESSAGING_PORT}
},Environment (please complete the following information):