Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ GEOSERVER_PUBLIC_LOCATION=http://localhost/geoserver/
GEOSERVER_LOCATION=http://geoserver:8080/geoserver/
GEOSERVER_ADMIN_USER=admin
GEOSERVER_ADMIN_PASSWORD=geoserver
GEOSERVER_DATA_DIR=/geoserver_data/data

OGC_REQUEST_TIMEOUT=30
OGC_REQUEST_MAX_RETRIES=1
Expand Down
1 change: 1 addition & 0 deletions .env_dev
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ GEOSERVER_PUBLIC_LOCATION=http://localhost:8080/geoserver/
GEOSERVER_LOCATION=http://localhost:8080/geoserver/
GEOSERVER_ADMIN_USER=admin
GEOSERVER_ADMIN_PASSWORD=geoserver
GEOSERVER_DATA_DIR=/geoserver_data/data

OGC_REQUEST_TIMEOUT=60
OGC_REQUEST_MAX_RETRIES=0
Expand Down
1 change: 1 addition & 0 deletions .env_local
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ GEOSERVER_PUBLIC_LOCATION=http://localhost:8080/geoserver/
GEOSERVER_LOCATION=http://localhost:8080/geoserver/
GEOSERVER_ADMIN_USER=admin
GEOSERVER_ADMIN_PASSWORD=geoserver
GEOSERVER_DATA_DIR=/geoserver_data/data

OGC_REQUEST_TIMEOUT=30
OGC_REQUEST_MAX_RETRIES=1
Expand Down
1 change: 1 addition & 0 deletions .env_test
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ GEOSERVER_PUBLIC_LOCATION=http://localhost/geoserver/
GEOSERVER_LOCATION=http://geoserver:8080/geoserver/
GEOSERVER_ADMIN_USER=admin
GEOSERVER_ADMIN_PASSWORD=geoserver
GEOSERVER_DATA_DIR=/geoserver_data/data

OGC_REQUEST_TIMEOUT=5
OGC_REQUEST_MAX_RETRIES=0
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def prepare(ctx):
new_ext_ip = os.environ["SITEURL"]
client_id = os.environ["OAUTH2_CLIENT_ID"]
client_secret = os.environ["OAUTH2_CLIENT_SECRET"]
oauth_config = "/geoserver_data/data/security/filter/geonode-oauth2/config.xml"
oauth_config = f"{os.environ['GEOSERVER_DATA_DIR']}/security/filter/geonode-oauth2/config.xml"
ctx.run(f'sed -i "s|<cliendId>.*</cliendId>|<cliendId>{client_id}</cliendId>|g" {oauth_config}', pty=True)
ctx.run(
f'sed -i "s|<clientSecret>.*</clientSecret>|<clientSecret>{client_secret}</clientSecret>|g" {oauth_config}',
Expand Down