Skip to content

Commit 7cc2528

Browse files
committed
main
refactor config
1 parent a8b7fb8 commit 7cc2528

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

frontend/settings.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@
3030

3131
DEBUG = False
3232

33-
# TODO move these to config
34-
ALLOWED_HOSTS = [
35-
"python-speedtest.azurewebsites.net",
36-
"0.0.0.0:8000",
37-
"127.0.0.1"
38-
]
33+
HOST_CONFIG = os.getenv("ALLOWED_HOSTS").split(",")
34+
35+
ALLOWED_HOSTS = HOST_CONFIG
3936

4037
# Application definition
4138

0 commit comments

Comments
 (0)