Skip to content

Commit

Permalink
Updated env
Browse files Browse the repository at this point in the history
removed redis name change

CACHE_URL added

REDIS_URL = env.str("REDIS_URL")

Standardise REDIS_URL env key

Testing database settings in paas.py

Re-implemented is_copilot for databases and removed from paas.py

Ranamed REDI_URL env key to CACHE_ENDPOINT
  • Loading branch information
PaulWheatcroft committed Jun 20, 2024
1 parent c18f947 commit daaaab0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env.ci
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SECRET_KEY=used_for_testing
ALLOWED_HOSTS="*"
DEBUG=False
DATABASE_URL=psql://postgres:postgres@db:5432/fido
REDIS_ENDPOINT=redis://redis:6379
CACHE_ENDPOINT=redis://redis:6379
AUTHBROKER_CLIENT_ID=
AUTHBROKER_CLIENT_SECRET=
AUTHBROKER_URL=
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def FILTERS_VERBOSE_LOOKUPS():
credentials["port"],
)
else:
REDIS_URL = env.str("REDIS_ENDPOINT")
REDIS_URL = env("CACHE_ENDPOINT", default=None)

# Celery
CELERY_BROKER_URL = REDIS_URL
Expand Down
6 changes: 0 additions & 6 deletions config/settings/paas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@
if is_copilot():
ALLOWED_HOSTS = setup_allowed_hosts(ALLOWED_HOSTS)

DATABASES["default"] = dj_database_url.config(
default=database_url_from_env("DATABASE_CREDENTIALS")
)

REDIS_URL = env("REDIS_URL", default=None) + "?ssl_cert_reqs=required"

LOGGING["handlers"]["console"]["formatter"] = "asim"

0 comments on commit daaaab0

Please sign in to comment.