Tethys Platform
Table Of Contents
Table Of Contents

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.

  1. 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;
}
  1. 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
../../../_images/geoserver_ssl.png
  1. 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