This repository was archived by the owner on Nov 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,16 @@ services:
7979 - STATION_MAP_FILTER_WATERSHED=1
8080 - STATION_MAP_FILTER_REGION=1
8181 - STATION_MAP_FILTER_COMMUNICATION=1
82- - SURFACE_API_ENABLED=true
82+ - SURFACE_API_ENABLED=false
8383 - CLIMSOFT_API_ENABLED=true
84- - MCH_API_ENABLED=true
85- - PYGEOAPI_ENABLED=true
84+ - MCH_API_ENABLED=false
85+ - PYGEOAPI_ENABLED=false
8686 - DEFAULT_USERNAME=admin
8787 - DEFAULT_PASSWORD=password123
8888 - HOST_FQDN=$HOST_FQDN
8989 - CLIMSOFT_AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
9090 - CLIMSOFT_AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
91- - AUTH_ENABLED=true
91+ - AUTH_ENABLED=false
9292 depends_on :
9393 - opencdms_surfacedb
9494 volumes :
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ def create_default_user():
144144
145145@app .get ("/" , response_class = HTMLResponse )
146146def root (request : Request ):
147- supported_apis = [{"title" : "Pygeoapi" , "url" : "/pygeoapi" }]
147+ supported_apis = []
148+ if settings .PYGEOAPI_ENABLED :
149+ supported_apis .append ({"title" : "Pygeoapi" , "url" : "/pygeoapi" })
148150 if settings .SURFACE_API_ENABLED :
149151 supported_apis .append ({"title" : "Surface API" , "url" : "/surface" })
150152 if settings .CLIMSOFT_API_ENABLED :
You can’t perform that action at this time.
0 commit comments