diff --git a/geonode/settings.py b/geonode/settings.py index 8e27a9fb5e5..35653e47c49 100644 --- a/geonode/settings.py +++ b/geonode/settings.py @@ -750,6 +750,10 @@ 'GEOSERVER_LOCATION', 'http://localhost:8080/geoserver/' ) +GEOSERVER_WEB_UI_LOCATION = os.getenv( + 'GEOSERVER_WEB_UI_LOCATION', urljoin(SITEURL, '/geoserver/') +) + GEOSERVER_PUBLIC_LOCATION = os.getenv( 'GEOSERVER_PUBLIC_LOCATION', urljoin(SITEURL, '/gs/') ) @@ -770,6 +774,7 @@ 'default': { 'BACKEND': 'geonode.geoserver', 'LOCATION': GEOSERVER_LOCATION, + 'WEB_UI_LOCATION': GEOSERVER_WEB_UI_LOCATION, 'LOGIN_ENDPOINT': 'j_spring_oauth2_geonode_login', 'LOGOUT_ENDPOINT': 'j_spring_oauth2_geonode_logout', # PUBLIC_LOCATION needs to be kept like this because in dev mode diff --git a/geonode/templates/base.html b/geonode/templates/base.html index 22e1499187b..c47162c5633 100644 --- a/geonode/templates/base.html +++ b/geonode/templates/base.html @@ -217,7 +217,7 @@
  • {% trans "Admin" %}
  • {% if 'geonode.geoserver' in INSTALLED_APPS %} -
  • GeoServer
  • +
  • GeoServer
  • {% endif %} {% if USE_MONITORING %}