New method of setting proxy settings: command-line -> env variable question

I’m trying to use the new method rather than the depricated edge proxy.

Deprecated --proxy option

The --proxy option has been deprecated and will be removed in a future release. The following table explains how the deprecated option maps to supported options.

kc.sh --proxy edge kc.sh --proxy-headers forwarded|xforwarded --http-enabled true

This is good, but… I use environment variables rather than command line options for most of my settings. When I try

  # -proxy-headers forwarded|xforwarded --http-enabled true
      KC_HTTP_ENABLED: true
      KC_PROXY_HEADERS: "forwarded|xforwarded"

I get the following error starting:

Invalid value for option 'kc.proxy-headers': forwarded|xforwarded. Expected values are: forwarded, xforwarded. From ConfigSource KcEnvVarConfigSource

I tried both with and without quotes. Same error.

Is that command line trying to allow both forwarded and xforwarded? How can I achieve that using environment variable?

You have to use either forwarded OR xforwarded - depending on what your proxy is sending.

What an idiot. Sorry. Thank you.