You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.
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:
@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
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
The text was updated successfully, but these errors were encountered: