Skip to content

feat: Changing the apisix.yaml configuration for Standalone mode #9839

Description

@dreek1337

Description

When creating the apisix.yaml configuration in standalone mode, for upstreams I need to specify the host and port in node as a key, but yaml cannot pull env for keys, so I want to suggest that it would be better to specify host and port separately for node.

How it was.:

upstreams:
  - id: 1
    type: roundrobin
    nodes:
      ${{APISIX_USERS_MS_HOST}}:${{APISIX_USERS_MS_PORT}}: 1    <- This does not work
    retries: 2

How it will be:

upstreams:
  - id: 1
    type: roundrobin
    nodes:
      1:
        host: ${{APISIX_USERS_MS_HOST}}
        port: ${{APISIX_USERS_MS_PORT}}
    retries: 2

Metadata

Metadata

Labels

wait for updatewait for the author's response in this issue/PR

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions