You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful if the pygeoapi config file would allow defining a default value for when an environment variable is not defined.
Something like:
...providers:
- type: featurename: Elasticsearchdata: ${ELASTICSEARCH_SERVER_URL:-http://localhost:9200}/canada-hydat-daily-mean-02hc003id_field: IDENTIFIERtime_field: DATE
In the snippet above, pygeoapi would try to load the ELASTICSEARCH_SERVER_URL variable from the environment and in case this variable would not exist, then a default value of http://localhost:9200 would be used.
Additional context
This feature would be useful for me to be able to run, for example the CITE tests in a docker compose stack without having to modify the existing CITE related config file that is present in the tests
I would be willing to provide an implementation for this in a PR if this is deemed a suitable addition
The text was updated successfully, but these errors were encountered:
It would be useful if the pygeoapi config file would allow defining a default value for when an environment variable is not defined.
Something like:
In the snippet above, pygeoapi would try to load the
ELASTICSEARCH_SERVER_URL
variable from the environment and in case this variable would not exist, then a default value ofhttp://localhost:9200
would be used.Additional context
This feature would be useful for me to be able to run, for example the CITE tests in a docker compose stack without having to modify the existing CITE related config file that is present in the tests
I would be willing to provide an implementation for this in a PR if this is deemed a suitable addition
The text was updated successfully, but these errors were encountered: