Skip to content

Commit

Permalink
add: custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
huangziwei committed May 21, 2024
1 parent f8beded commit 826069a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.bool("DEBUG", default=False)

ALLOWED_HOSTS = ["*"]
# ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = ["r.etr.ist", "retimgtools.fly.dev"]


# Application definition
Expand Down Expand Up @@ -153,6 +154,10 @@
MEDIA_URL = "media/"
MEDIA_ROOT = BASE_DIR / "media"

CSRF_TRUSTED_ORIGINS = ["https://*.fly.dev/"]
CSRF_TRUSTED_ORIGINS = [
"https://*.fly.dev",
"https://r.etr.ist",
]
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
SECURE_SSL_REDIRECT = True

0 comments on commit 826069a

Please sign in to comment.