GeoServer SSL Configuration
Last Updated: May 2020
A secured server can only communicate with other secured servers. Therefore to allow the secured Tethys Portal to communicate with GeoServer, the latter needs to be secured as well.
Add the following location at the end of your server block in your
tethys_nginx.conf
:
server {
...
#GeoServer
location /geoserver {
proxy_pass http://127.0.0.1:8181/geoserver;
}
Next, go to your GeoServer web interface (e.g.: http://domain-name:8181/geoserver/web/), sign in, and set the Proxy Base URL in Global settings to:
https://<domain-name>/geoserver
Finally, restart all supervisor services (NGINX and Daphne) to effect the changes:
sudo supervisorctl restart all
The portal should now be accessible from https://domain-name and GeoServer should now be accessible from https://domain-name/geoserver.
Note
Notice that the GeoServer port (8181) is not necessary once the proxy is configured