<div>Hi Matthieu,<br></div><div><br></div><div>Unfortunately, this is not possible with the configuration files. It is possible to tweak the PyWPS code to behave in that way, but this might not be the simplest way.<br></div><div><br></div><div>My advice is to give a name to that server and keep the entry up to date in your DNS. That is likely the simplest way of running a PyWPS server with a dynamic IP.<br></div><div><br></div><div>Regards,<br></div><div><br></div><div>Luís<br></div><div class="protonmail_signature_block "><div class="protonmail_signature_block-user "><br></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div><blockquote type="cite" class="protonmail_quote"><div>-------- Original Message --------<br></div><div>Subject: [Pywps-dev] Dynamic IPs for polling and results requests.<br></div><div>Local Time: 17 October 2016 11:22 AM<br></div><div>UTC Time: 17 October 2016 09:22<br></div><div>From: matthieu.melcot@spaceapplications.com<br></div><div>To: pywps-dev@lists.osgeo.org<br></div><div><br></div><div>Hello,<br></div><div>
<br></div><div>
I'm using PyWPS 3.2.4 that I containerized into Docker Containers to run <br></div><div>
into Mesos Marathon.<br></div><div>
<br></div><div>
The external IP's and ports of my WPS Servers are therefore dynamic for <br></div><div>
being assigned by the Marathon framework.<br></div><div>
<br></div><div>
I am able to send a GetCapabilities or Execute requests to these <br></div><div>
distributed WPS Servers in the Cluster since I know the 'public' IPs and <br></div><div>
ports. However the XML documents sent back to the client by the PyWPS <br></div><div>
servers contain 'polling' and 'results' IPs refering to the values set <br></div><div>
in 'pywps.cfg' (and not the IP and port used by the client to <br></div><div>
communicate with the server).<br></div><div>
<br></div><div>
For example:<br></div><div>
[wps]<br></div><div>
<br></div><div>
...<br></div><div>
serveraddress=http://172.16.10.40<br></div><div>
...<br></div><div>
<br></div><div>
[wps]<br></div><div>
...<br></div><div>
serveraddress=http://172.16.10.40/wps/wpsoutputs/<br></div><div>
...<br></div><div>
<br></div><div>
Thus, the problem arise once it gets to poll for the end of the execution.<br></div><div>
<br></div><div>
How can I configure PyWPS to force it to provides polling and results <br></div><div>
URLs on the same public URLs that the client request?<br></div><div>
<br></div><div>
Matthieu<br></div><div>
_______________________________________________<br></div><div>
pywps-dev mailing list<br></div><div>
pywps-dev@lists.osgeo.org<br></div><div>
http://lists.osgeo.org/mailman/listinfo/pywps-dev<br></div></blockquote><div><br></div>