EOxServer / eoxserver

EOxServer is a Python application and framework for presenting Earth Observation (EO) data and metadata.
https://eoxserver.org
Other
40 stars 18 forks source link

Wps getcapabilities offered operations urls #525

Open lubojr opened 2 years ago

lubojr commented 2 years ago

GetCapabilities documents of WPS 1.0 and WPS 2.0 interfaces do not list Operations with the actual service URL but a one from configuration, so if the service is actually accessible behind more URLs, it is not possible to guarantee that the same hostname that is used to send the request will also appear in the getcapabilities links.

BEFORE: service url from configuration currently used in WPS: conf.http_service_url (this config is marked as mandatory in eoxserver user guide) yields for example: or in tests http://testserver/ows

AFTER: Use the request absolute URI itself (as is in case of WMS and WCS service GetCapabilities) which would yield

TODO, do this for WCS GetCapabilities as well.

pacesm commented 2 years ago

Probably a right thing to do though it should be noted that this approach depends on the correct reverse-proxy configuration. When running behind a reverse proxy, Django will be able to resolve the public URL only if it receives the right forward headers.