Bug: Proxy validation
Nginx Unit version: 1.32.1
Validation error when setting action proxy. http://host.docker.internal:7600 fails verification
Config inside my docker container:
I tried to use this inside a container to communicate with the host, but there is no way to simply load it :)
{
"listeners": {
"*:80": {
"pass": "routes/test"
},
},
"routes": {
"test": [
{
"action": {
"proxy": "http://host.docker.internal:7600"
}
}
],
}
}
Error:
{
"error": "Invalid configuration.",
"detail": "The \"proxy\" address is invalid \"host.docker.internal:7600\""
}
Hi @Pavlusha311245,
Unit doesn't support DNS resolving at the moment. More information here: https://github.com/nginx/unit/issues/779
Hi @Pavlusha311245,
Unit doesn't support DNS resolving at the moment. More information here: #779
Have Unit same problem with upstreams?
Have Unit same problem with upstreams?
Yes, no resolving anywhere.
@andrey-zelenkov I found new situation. Why I'm getting an error while using http://172.24.0.3 instead of http://172.24.0.3:80?
There is currently no default port specified.