Re: [Geoserver-users] Reverse Proxy routing

2021-01-15 Thread Vera Green
Have you done this?

<#proxy>Proxy

To support the reverse proxy setup we need to add this as per documentation


nano /opt/tomcat/latest/webapps/geoserver/WEB-INF/web.xmlsystemctl
restart tomcat

ADD this:


 GEOSERVER_CSRF_WHITELIST
subdomain.domain.com  


Hope that helps.

Vera



On Fri, Jan 15, 2021 at 12:08 PM Joe Murphy 
wrote:

> Hello,
>
> I'm working on moving our Geoserver 2.15.4 instance behind a Spring Cloud
> Gateway instance. These are all running in a standalone Docker instance on
> a local server. I've been able to get the requests for map data working
> fine. However the Admin interface is not functioning correctly. I can bring
> up the login page, but when I try to log in, it's not maintaining the route
> from the reverse proxy.
>
> So instead of POSTing to https://HOST/geoserver-admin/, it's going to
> https://HOST/, which is failing.
>
> My assumption is that I'll be able to pick up the X-Forwarded-* headers
> from the proxy, but what I can't figure out is how to update Tomcat and/or
> Geoserver configuration to pick up these headers.
>
> I've configured a standard route for the gateway that is routing correctly
> for api requests, its just the admin ui that I'm having issues with. I just
> wasn't sure if there was something I wasn't understanding related to the
> gateway. Like I said my assumption is all I should need on the gateway side
> is to add the XForwarded filter to the route.
>
> Thanks!
> Joe
> ___
> 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
>
___
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


[Geoserver-users] Reverse Proxy routing

2021-01-15 Thread Joe Murphy
Hello,

I'm working on moving our Geoserver 2.15.4 instance behind a Spring Cloud
Gateway instance. These are all running in a standalone Docker instance on
a local server. I've been able to get the requests for map data working
fine. However the Admin interface is not functioning correctly. I can bring
up the login page, but when I try to log in, it's not maintaining the route
from the reverse proxy.

So instead of POSTing to https://HOST/geoserver-admin/, it's going to
https://HOST/, which is failing.

My assumption is that I'll be able to pick up the X-Forwarded-* headers
from the proxy, but what I can't figure out is how to update Tomcat and/or
Geoserver configuration to pick up these headers.

I've configured a standard route for the gateway that is routing correctly
for api requests, its just the admin ui that I'm having issues with. I just
wasn't sure if there was something I wasn't understanding related to the
gateway. Like I said my assumption is all I should need on the gateway side
is to add the XForwarded filter to the route.

Thanks!
Joe
___
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