Saturday, December 10, 2016

Separating GeoNode Capabilities

I was able to use separate hosts for GeoNode, Geoserver, and Postgresql/Postgis instead of having them all on a single machine.

On the remote Postgresql server:

  • Create the geonode user and both the geonode and geonode_data databases.  I used the instructions available here
  • Edit /etc/postgres/9.5/main/pg_hba.conf  to allow geonode user and database access
  • Edit /etc/postgres/9.5/main/postgresql.conf to allow listeners outside of localhost


On the GeoNode host:

  • Test access to remote server with:  psql -h <remote host ip> -U geonode
  • Edit /etc/geonode/local_settings.conf  and change the database host and password
  • Add the remote database server to the ALLOWED_HOSTS
  • Edit /etc/geonode/local_settings.conf and change the GEOSERVER_URL
  • Make sure the remote geoserver has an admin user/password that matches local_settings.conf
  • Edit /etc/apache2/sites-available/geonode.conf and change the ProxyPass and ReverseProxyPass directives.


For future builds:

Before running the install.sh script, edit the geonode/package/support/geonode.local_settings and change the remote database settings and remote geoserver settings



No comments:

Post a Comment