support ALLOWED_HOSTS (#1905)

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Shuchang Zheng
2025-03-09 16:13:33 -07:00
committed by GitHub
parent 21cedc43d1
commit 8537a29b1c
2 changed files with 3 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ class Settings(BaseSettings):
PORT: int = 8000
ALLOWED_ORIGINS: list[str] = ["*"]
BLOCKED_HOSTS: list[str] = ["localhost"]
ALLOWED_HOSTS: list[str] = []
# Secret key for JWT. Please generate your own secret key in production
SECRET_KEY: str = "PLACEHOLDER"