Skip to content

Commit

Permalink
introduce new GEOSERVER_WEB_UI_LOCATION options
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy committed Jan 29, 2019
1 parent 77e0fe3 commit 8a1c0c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,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/')
)
Expand All @@ -768,6 +772,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
Expand Down
2 changes: 1 addition & 1 deletion geonode/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<li role="separator" class="divider"></li>
<li><a href="{% url "admin:index" %}">{% trans "Admin" %}</a></li>
{% if 'geonode.geoserver' in INSTALLED_APPS %}
<li><a href="{{ OGC_SERVER.default.LOCATION }}">GeoServer</a></li>
<li><a href="{{ OGC_SERVER.default.WEB_UI_LOCATION }}">GeoServer</a></li>
{% endif %}
{% if USE_MONITORING %}
<li role="separator" class="divider"></li>
Expand Down

0 comments on commit 8a1c0c6

Please sign in to comment.