Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit 96c4a2f

Browse files
minor refactor
1 parent 83eb4cf commit 96c4a2f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

src/opencdms_api/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def create_default_user():
144144

145145
@app.get("/", response_class=HTMLResponse)
146146
def 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:

0 commit comments

Comments
 (0)