@@ -77,7 +77,6 @@ def update(ctx):
7777 "monitoring_host_name" : os .environ .get ('MONITORING_HOST_NAME' , 'geonode' ),
7878 "monitoring_service_name" : os .environ .get ('MONITORING_SERVICE_NAME' , 'local-geonode' ),
7979 "monitoring_data_ttl" : os .environ .get ('MONITORING_DATA_TTL' , 7 ),
80- "geoip_path" : os .environ .get ('GEOIP_PATH' , '/mnt/volumes/statics/geoip.db' ),
8180 "geonode_geodb_passwd" : os .environ .get ('GEONODE_GEODATABASE_PASSWORD' , 'geonode_data' ),
8281 "default_backend_datastore" : os .environ .get ('DEFAULT_BACKEND_DATASTORE' , 'datastore' ),
8382 "geonode_db_passwd" : os .environ .get ('GEONODE_DATABASE_PASSWORD' , 'geonode' ),
@@ -211,6 +210,21 @@ def prepare(ctx):
211210 client_secret = os .environ ['OAUTH2_CLIENT_SECRET' ],
212211 oauth_config = oauth_config
213212 ), pty = True )
213+ ctx .run (
214+ 'sed -i "s|<userAuthorizationUri>.*</userAuthorizationUri>|<userAuthorizationUri>{new_ext_ip}o/authorize/</userAuthorizationUri>|g" {oauth_config}' .format (
215+ new_ext_ip = os .environ ['SITEURL' ],
216+ oauth_config = oauth_config
217+ ), pty = True )
218+ ctx .run (
219+ 'sed -i "s|<redirectUri>.*</redirectUri>|<redirectUri>{new_ext_ip}geoserver/index.html</redirectUri>|g" {oauth_config}' .format (
220+ new_ext_ip = os .environ ['SITEURL' ],
221+ oauth_config = oauth_config
222+ ), pty = True )
223+ ctx .run (
224+ 'sed -i "s|<logoutUri>.*</logoutUri>|<logoutUri>{new_ext_ip}account/logout/</logoutUri>|g" {oauth_config}' .format (
225+ new_ext_ip = os .environ ['SITEURL' ],
226+ oauth_config = oauth_config
227+ ), pty = True )
214228
215229
216230@task
@@ -222,7 +236,7 @@ def fixtures(ctx):
222236 --settings={0}" .format (_localsettings ()), pty = True )
223237 ctx .run ("python manage.py loaddata /tmp/default_site.json \
224238 --settings={0}" .format (_localsettings ()), pty = True )
225- ctx .run ("python manage.py loaddata /usr/src/app/fixtures/ initial_data.json \
239+ ctx .run ("python manage.py loaddata initial_data \
226240 --settings={0}" .format (_localsettings ()), pty = True )
227241 ctx .run ("python manage.py set_all_layers_alternate \
228242 --settings={0}" .format (_localsettings ()), pty = True )
0 commit comments