unit icon indicating copy to clipboard operation
unit copied to clipboard

Bug: Proxy validation

Open Pavlusha311245 opened this issue 2 years ago • 5 comments

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\""
}

Pavlusha311245 avatar Apr 24 '24 16:04 Pavlusha311245

Hi @Pavlusha311245,

Unit doesn't support DNS resolving at the moment. More information here: https://github.com/nginx/unit/issues/779

andrey-zelenkov avatar Apr 24 '24 16:04 andrey-zelenkov

Hi @Pavlusha311245,

Unit doesn't support DNS resolving at the moment. More information here: #779

Have Unit same problem with upstreams?

Pavlusha311245 avatar Apr 24 '24 16:04 Pavlusha311245

Have Unit same problem with upstreams?

Yes, no resolving anywhere.

andrey-zelenkov avatar Apr 24 '24 16:04 andrey-zelenkov

@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?

Pavlusha311245 avatar May 01 '24 06:05 Pavlusha311245

There is currently no default port specified.

andrey-zelenkov avatar May 09 '24 19:05 andrey-zelenkov