FG-AI4H-TG-Symptom / fgai4h-tg-symptom-assessment-mmvb-backend

A backend of a minimal minimal viable benchmark designed and developed by the members of the sub-group (topic group) “Symptom assessment”, which is the part of the ITU focus group “Artificial Intelligence for Health”
6 stars 4 forks source link

WEBAPP_HOST_URL if not set defaults to empty string in container causing settings error #110

Closed mkurtys-infermedica closed 3 years ago

mkurtys-infermedica commented 3 years ago

As docker-compose docs says

If an environment variable is not set, Compose substitutes with an empty string.

settings.py. CORS_ORIGIN_WHITELIST = [....]

os.environ.get("WEBAPP_HOST_URL", "http://localhost:8080"),

Possible solution:

os.environ.get("WEBAPP_HOST_URL") or "http://localhost:8080",
nstrelow commented 3 years ago

Thanks for finding this. Is fixed in #111