On 10-12-2020 14:02, pham lan wrote:
Hello,
I have my geoserver setup and it is behind a http proxy http://proxy_IP:8080
I would like to add an external WMS datasource. For example this one:
https://sgx.geodatenzentrum.de/wms_topplus_open?request=GetCapabilities&service=wms
Curl command from geoserver works well
curl --proxy http://IP:8080
https://sgx.geodatenzentrum.de/wms_topplus_open?request=GetCapabilities&service=wms
But when i tried to add this datasource from GUI, it gave me timeout,
looks like it did not go via proxy though i changed the startup.sh
script to run java with proxy option:
exec "$_RUNJAVA" $JAVA_OPTS $MARLIN_ENABLER
-DGEOSERVER_DATA_DIR="$GEOSERVER_DATA_DIR" -Djava.awt.headless=true
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver *-Dhttp.proxySet=true
-Dhttp.proxyHost=http://proxy_IP -Dhttp.proxyPort=8080 *-jar start.jar
I can also see these java options in ps process
geoserver]# ps -ef|grep java
root 522724 1 7 13:22 ? 00:00:39 java
-Xbootclasspath/a:/usr/share/geoserver/webapps/geoserver/WEB-INF/lib/marlin-0.9.3.jar
-Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine
-DGEOSERVER_DATA_DIR=/usr/share/geoserver/data_dir
-Djava.awt.headless=true -DSTOP.PORT=8079 -DSTOP.KEY=geoserver
*-Dhttp.proxySet=true -Dhttp.proxyHost=http://proxy_IP
-Dhttp.proxyPort=8080 *-jar start.jar
Do I still miss something to make this work? Appreciate your help here!
since the proto for that service is https the http proxy is probably
ignored. you'll want to use https.<properties>
see: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html
-M
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users