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
pygeoapi configuration currently has the parameters:
server.bind.host
server.bind.port
These are used to specify how to run the pygeoapi web application server. However, given that these are just server initialization parameters, in my opinion, they should not be part of the configuration object, but rather specified at runtime, when initializing the web application server.
These parameters are not used anywhere except in the code that initializes the web application (flask, starlette, django).
Moreover, these parameters are simply not used if for example I use gunicorn to launch pygeoapi instead of pygeoapi serve, which is already the case on pygeoapi's docker image:
Describe the solution you'd like
I would like to have these parameters removed from the pygeoapi configuration and passed as either env variables or CLI parameters when calling pygeoapi serve.
The text was updated successfully, but these errors were encountered:
pygeoapi configuration currently has the parameters:
server.bind.host
server.bind.port
These are used to specify how to run the pygeoapi web application server. However, given that these are just server initialization parameters, in my opinion, they should not be part of the configuration object, but rather specified at runtime, when initializing the web application server.
These parameters are not used anywhere except in the code that initializes the web application (flask, starlette, django).
Moreover, these parameters are simply not used if for example I use
gunicorn
to launch pygeoapi instead ofpygeoapi serve
, which is already the case on pygeoapi's docker image:pygeoapi/docker/entrypoint.sh
Lines 44 to 45 in 8ffc354
Describe the solution you'd like
I would like to have these parameters removed from the pygeoapi configuration and passed as either env variables or CLI parameters when calling
pygeoapi serve
.The text was updated successfully, but these errors were encountered: