Skip to content

Commit

Permalink
Redis password set via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
damianmoore committed Sep 1, 2021
1 parent 53ef6f2 commit 10e0526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion photonix/classifiers/color/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
self.colors = {
# Name: ((red, green, blue), ordering)

'Red': ((120, 4, 20), 1),
'Red': ((120, 4, 20), 1),
'Orange': ((245, 133, 0), 2),
'Amber': ((234, 166, 30), 3),
'Yellow': ((240, 240, 39), 4),
Expand Down
3 changes: 2 additions & 1 deletion photonix/photos/utils/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
redis_connection = redis.Redis(
host=os.environ.get('REDIS_HOST', '127.0.0.1'),
port=int(os.environ.get('REDIS_PORT', '6379')),
db=int(os.environ.get('REDIS_DB', '0'))
db=int(os.environ.get('REDIS_DB', '0')),
password=os.environ.get('REDIS_PASSWORD')
)

0 comments on commit 10e0526

Please sign in to comment.