Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #479 from alphagov/add_rediss_support
Browse files Browse the repository at this point in the history
Add rediss support.
  • Loading branch information
blairboy362 authored Aug 20, 2018
2 parents 0e8275e + 6525162 commit 8dc7bc9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions backdrop/celeryconfig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os
import ssl

if os.environ.get('BACKDROP_BROKER_SSL_CERT_REQS', False):
broker_use_ssl = {
'ssl_cert_reqs': eval('ssl.{}'.format(os.environ['BACKDROP_BROKER_SSL_CERT_REQS']))
}
3 changes: 3 additions & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ applications:
memory: 1G
no-route: true
health-check-type: none
env:
BACKDROP_BROKER_SSL_CERT_REQS: CERT_NONE
CELERY_CONFIG_MODULE: backdrop.celeryconfig
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
argh==0.25
git+git://github.com/tlwr/celery.git@master#egg=celery
git+git://github.com/tlwr/kombu.git@master#egg=kombu
git+git://github.com/alphagov/celery.git@4.2.1-rediss#egg=celery
git+git://github.com/alphagov/kombu.git@4.2.1-rediss#egg=kombu
Flask==0.10.1
Flask-FeatureFlags==0.4
invoke
Expand Down

0 comments on commit 8dc7bc9

Please sign in to comment.