GeoGateway / geogateway-django-app

Apache License 2.0
0 stars 5 forks source link

geoserver https proxy issue on JS2 #268

Open webgisdeveloper opened 1 year ago

webgisdeveloper commented 1 year ago

weird issue, highres works, however, coloring is not working, alos geoserver interface is not working, in layer preview, search and select page is not working possible issue https://stackoverflow.com/questions/66526411/geoserver-advice-please-http-status-400-bad-request

webgisdeveloper commented 1 year ago

https://dev.to/iamtekson/using-nginx-to-put-geoserver-https-4204

in geoserver-2.22/webapps/geoserver/WEB-INF/web.xml

un_comment three parts, modify the urls

    <context-param>
      <param-name>PROXY_BASE_URL</param-name>
      <param-value>https://example.com/geoserver</paramvalue>
    </context-param>

two parts for CORS then add one more entry:

<context-param>
  <param-name>GEOSERVER_CSRF_WHITELIST</param-name>
  <param-value>example.org</param-value>
</context-param>

restart geoserver

webgisdeveloper commented 1 year ago

also under global setting in geoserver: put in proxy base url and check "Use headers for proxy url"