tegola icon indicating copy to clipboard operation
tegola copied to clipboard

Webserver.Headers config cannot be set via environment variables

Open ezk84 opened this issue 5 years ago • 1 comments

If I have config like:

[webserver]
port = ":9090"
uri_prefix = "${TEGOLA_URI_PREFIX}"

    [webserver.headers]
	Access-Control-Allow-Origin = "${TEGOLA_ALLOW_ORIGIN}"

...

The value isn't picked up from the environment, instead the literal string ${TEGOLA_ALLOW_ORIGIN} is sent as the header value. Other values are correctly picked up from the environment.

ezk84 avatar May 18 '20 21:05 ezk84

I think this is caused by nested config blocks not supporting the env var parsing: https://github.com/go-spatial/tegola/issues/597

ARolek avatar May 18 '20 21:05 ARolek