Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

reverse proxy geoServer #10

Open
smrgeoinfo opened this issue Dec 30, 2014 · 2 comments
Open

reverse proxy geoServer #10

smrgeoinfo opened this issue Dec 30, 2014 · 2 comments
Assignees

Comments

@smrgeoinfo
Copy link

transferred from #6
@JihadMotii-REISys @FuhuXia please mark closed when this has been handled

In order to make Geothermal Prospector communicate with our UAT Server (geoserver), we've to add reverse Proxy from 80 to 8080 (Tomcat - Geoserver) only for this path (/geoserver-srv), because the Geo Thermal API doesn't accept port (and for better security configuration on the node, want to close 8080 to public access)
in ckan.conf httpd config, add these lines:

CUSTOM: REVERSE PROXY FOR https://maps-stage.nrel.gov/geothermal-prospector API DOESN"T ACCEPT PORT 8080

ProxyRequests Off
ProxyPass /geoserver-srv http://uat-ngds.reisys.com:8080/geoserver
ProxyPassReverse /geoserver-srv http://uat-ngds.reisys.com:8080/geoserver

TODO in httpd ckan conf: Secure/Restrict access to /geoserver-srv/web by @ip or user/pass ...

In CKAN production.ini, add the following lines: (for security reasons, we used proxy)
ckan.hostname = DOMAIN_NAME (WITHOUT http:// or SLASH at the end)
ckan.site_url = http://%(ckan.hostname)s
....
geoserver.default_workspace = ckan
geoserver.workspace_name = ckan
geoserver.use_proxy = True
geoserver.proxied_path = /geoserver-srv
geoserver.rest_url = geoserver://admin:geoserver@%(ckan.hostname)s/geoserver-srv/rest

@FuhuXia

@JihadMotii-REISys
Copy link
Collaborator

Fix: REI-Systems@c10afa2

@FuhuXia
-> Remove this line from production.ini
geoserver.use_proxy = True
No need for it, because geoserver provide a way to set up a proxy URL
-> Change this line:
geoserver.proxied_path = /geoserver-srv
geoserver.rest_url = geoserver://admin:geoserver@%(ckan.hostname)s/geoserver-srv/rest
to:
geoserver.proxied_path = geoserver-srv
geoserver.rest_url = geoserver://admin:geoserver@%(ckan.hostname)s/%(geoserver.proxied_path)s/rest

@JihadMotii-REISys
Copy link
Collaborator

@FuhuXia, change the USGIN MODEL version to 1.1.6 in GIN INSTALL
https://github.com/ngds/ckanext-metadata/issues/20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants