Skip to content

Commit

Permalink
Create env variable for UI Cluster (#590)
Browse files Browse the repository at this point in the history
* Create env variable for UI Cluster

* add WIS2BOX_UI_CLUSTER to reference docs

* Update data-ingest.rst

fix typo reported by Brazil

---------

Co-authored-by: Maaike <[email protected]>
Co-authored-by: Maaike <[email protected]>
  • Loading branch information
3 people authored Dec 14, 2023
1 parent 97ab96c commit bc73660
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/reference/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Web application configuration provides the ability to customize web components.
WIS2BOX_BASEMAP_URL="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" # URL of map tile server to use
WIS2BOX_BASEMAP_ATTRIBUTION="<a href="https://osm.org/copyright">OpenStreetMap</a> contributors" # attribution of map tile server
WIS2BOX_UI_CLUSTER=False # default setting of the cluster toggle
Other
^^^^^
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user/data-ingest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ To use the ``docker-compose.wis2box-ftp.yml`` template included in wis2box, crea
FTP_HOST=${MYHOSTNAME}
WIS2BOX_STORAGE_ENDPOINT=http://${MYHOSTNAME}:9000
WIS2BOX_STORAGE_USER=wis2box
WIS2BOX_STORAGE_USERNAME=wis2box
WIS2BOX_STORAGE_PASSWORD=XXXXXXXX
LOGGING_LEVEL=INFO
Expand Down
1 change: 1 addition & 0 deletions tests/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ WIS2BOX_DATADIR=/data/wis2box

# wis2box public URL
WIS2BOX_URL=http://localhost
WIS2BOX_UI_CLUSTER=false

# api
WIS2BOX_API_TYPE=pygeoapi
Expand Down
1 change: 1 addition & 0 deletions wis2box-create-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def create_wis2box_env(config_dir: str) -> None:
wis2box_url = get_wis2box_url()
fh.write('# wis2box public URL\n')
fh.write(f'WIS2BOX_URL={wis2box_url}\n')
fh.write('WIS2BOX_UI_CLUSTER=false\n')
fh.write('\n')
fh.write('# api\n')
fh.write('WIS2BOX_API_TYPE=pygeoapi\n')
Expand Down

0 comments on commit bc73660

Please sign in to comment.