Skip to content

Commit cfce9be

Browse files
committed
allowed host
1 parent 26dffc0 commit cfce9be

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

authentic/settings.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,9 @@
3030
# ~ SECRET_KEY = 'django-insecure-&u@&@soryoakqd99#8n!zj6a1&l2bd($x53oz#zj3^k0*s-dxa'
3131

3232
# SECURITY WARNING: don't run with debug turned on in production!
33-
DEBUG = False
34-
35-
ALLOWED_HOSTS = ['payment', "orders", "notif", '127.0.0.1', "api-auth-gjfj.onrender.com",
36-
"authentic",
37-
"shopping_cart",
38-
"catalog",
39-
"localhost",
40-
'auth-service', # For Docker compatibility
41-
'app'
42-
]
33+
DEBUG = os.environ.get("DEBUG", "False").lower() == "true"
34+
35+
ALLOWED_HOSTS = ["*"] if DEBUG else ".onrender.com"
4336

4437

4538
# Application definition

0 commit comments

Comments
 (0)