Skip to content

coder_app resource doesn't proxy non localhost addresses #4287

@bartonip

Description

@bartonip

I have PGAdmin running in a separate container with the hostname pgadmin.

I have specified a coder_app resource like this:

resource "coder_app" "pgadmin" {
  agent_id = coder_agent.main.id
  name     = "PGAdmin"
  url      = "http://pgadmin/"
  icon     = "icons/pgadmin.svg"
  relative_path = true
}

However I just get the following error message:

PGAdmin is offline!
read tcp [ipv6-here]:44715: connection reset by peer
  • It works when the url is localhost or some address that is pointed to 127.0.0.1 in /etc/hosts
  • Inside the container if i curl http://pgadmin/ it works

Any help would be much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    networkingArea: networkingstaleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions