Skip to content

Commit

Permalink
fix: rm duplicate cf config
Browse files Browse the repository at this point in the history
  • Loading branch information
fivehanz committed Aug 19, 2024
1 parent 5f7baeb commit 5a757dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions hanz/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@
DEBUG = os.environ.get("DEBUG", False)
WAGTAIL_CACHE = os.environ.get("WAGTAIL_CACHE", not DEBUG)

# wagtail frontend cache (cloudflare), invalidated on change
WAGTAILFRONTENDCACHE = {
'cloudflare': {
'BACKEND': 'wagtail.contrib.frontend_cache.backends.CloudflareBackend',
'BEARER_TOKEN': os.environ.get("CLOUDFLARE_BEARER_TOKEN", ""),
'ZONEID': os.environ.get("CLOUDFLARE_ZONEID", ""),
},
}

# Application definition

INSTALLED_APPS = [
Expand Down
9 changes: 9 additions & 0 deletions hanz/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

SECRET_KEY = os.environ.get("SECRET_KEY")

# wagtail frontend cache (cloudflare), invalidated on change
WAGTAILFRONTENDCACHE = {
'cloudflare': {
'BACKEND': 'wagtail.contrib.frontend_cache.backends.CloudflareBackend',
'BEARER_TOKEN': os.environ.get("CLOUDFLARE_BEARER_TOKEN", ""),
'ZONEID': os.environ.get("CLOUDFLARE_ZONEID", ""),
},
}

ALLOWED_HOSTS = os.environ.get("ALLOW_HOSTS", "").split(",")
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(",")

Expand Down

0 comments on commit 5a757dc

Please sign in to comment.