Skip to content

Commit

Permalink
- Backporting GEOSERVER_WEB_UI_LOCATION to sample local settings
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Feb 5, 2019
1 parent 1560a46 commit 9cef660
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geonode/local_settings.py.geoserver.sample
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ GEOSERVER_PUBLIC_PORT = os.getenv(

_default_public_location = 'http://{}:{}/gs/'.format(GEOSERVER_PUBLIC_HOST, GEOSERVER_PUBLIC_PORT) if GEOSERVER_PUBLIC_PORT else 'http://{}/gs/'.format(GEOSERVER_PUBLIC_HOST)

GEOSERVER_WEB_UI_LOCATION = os.getenv(
'GEOSERVER_WEB_UI_LOCATION', _default_public_location
)

GEOSERVER_PUBLIC_LOCATION = os.getenv(
'GEOSERVER_PUBLIC_LOCATION', _default_public_location
)
Expand All @@ -150,6 +154,7 @@ OGC_SERVER = {
'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

0 comments on commit 9cef660

Please sign in to comment.