Skip to content

Commit

Permalink
.env the ALLOWEDs as in Kittygram.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkoov committed Jan 15, 2024
1 parent f5b93c0 commit 0c84465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DEBUG
ALLOWED_HOSTS
SECRET_KEY
POSTGRES_USER
POSTGRES_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

DEBUG = os.getenv("DEBUG", "false").lower() == "true"

ALLOWED_HOSTS = ["77.222.43.136", "127.0.0.1", "localhost", "taski.zapto.org"]
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "localhost").split()

# Application definition
INSTALLED_APPS = [
Expand Down

0 comments on commit 0c84465

Please sign in to comment.