Skip to content

Commit

Permalink
config: Read Redis URL from environment variables if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Dec 21, 2020
1 parent 04f9e4e commit 0b3f1ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/default.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import os
import os.path

here = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -44,8 +45,8 @@

SKYLINES_MAP_TILE_URL = "https://www.skylines.aero/mapproxy"

BROKER_URL = "redis://localhost:6379/0"
CELERY_RESULT_BACKEND = "redis://localhost:6379/0"
BROKER_URL = os.getenv("REDIS_URL", "redis://localhost:6379/0")
CELERY_RESULT_BACKEND = os.getenv("REDIS_URL", "redis://localhost:6379/0")
CELERYD_LOG_LEVEL = "INFO"

# limits for AnalyseFlight
Expand Down

0 comments on commit 0b3f1ae

Please sign in to comment.