Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ JEWEL_DATABASE_URL=postgresql://user:pass@db:5432/jewel
JEWEL_TIME_ZONE=UTC
JEWEL_LANGUAGE_CODE=en-us
JEWEL_DEBUG=True
JEWEL_ALLOWED_HOSTS=localhost,127.0.0.1
JEWEL_API_TOKEN=your-secret-api-token-here
POSTGRES_DB: jewel
POSTGRES_USER: jewel
Expand Down
5 changes: 1 addition & 4 deletions jewel/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv("JEWEL_DEBUG", "True") == "True"

ALLOWED_HOSTS = [
"localhost",
]

ALLOWED_HOSTS = os.getenv("JEWEL_ALLOWED_HOSTS", "localhost").split(",")

# Application definition

Expand Down