how to setup ngnix config,now call api got Bad Getway #9239
Replies: 4 comments
|
I found a similar discussion that might help: how to update nginx/conf.d/default.conf, if modify directly, will replace [1]. To resolve the "Bad Gateway" error, ensure Nginx is forwarding requests to the correct IP addresses. Here's how you can configure the
Make sure to verify the IP addresses and update them accordingly in your configuration [2]. |
|
but /docker-api-1 has 2 ips ?how to setup |
|
If
This setup will distribute requests between the two IPs. Adjust the IPs in the configuration to match your actual container IPs. |
|
This is only for bug report, if you would like to ask a question, please head to Discussions. |
Uh oh!
There was an error while loading. Please reload this page.
Self Checks
Dify version
0.8.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
when i use this command ,got ip like /docker-api-1: 192.168.192.7192.168.208.4
how to setup in default.conf ?
✔️ Expected Behavior
No response
❌ Actual Behavior
docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
when i use this command ,got ip like /docker-api-1: 192.168.192.7192.168.208.4
how to setup in default.conf ?
location /v1 {
proxy_pass http://api:5001;
include proxy.conf;
}
All reactions