Add RQ_QUEUES to default config

We can use string interpolation in the file rather than building it when
making the config. Adding the value to the config allows us to override
it with an environment variable, if we want to (as we do for the UAT
environment).
This commit is contained in:
Patrick Smith 2018-10-31 16:03:10 -04:00
parent 49992e58df
commit 4bbb55a06e
2 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def map_config(config):
),
"REQUIRE_CRLS": config.getboolean("default", "REQUIRE_CRLS"),
"RQ_REDIS_URL": config["default"]["REDIS_URI"],
"RQ_QUEUES": ["atat_{}".format(ENV.lower())],
"RQ_QUEUES": [config["default"]["RQ_QUEUES"]],
}

View File

@ -16,6 +16,7 @@ PGUSER = postgres
PORT=8000
REDIS_URI = redis://localhost:6379
REQUIRE_CRLS = true
RQ_QUEUES = atat_%(ENVIRONMENT)s
SECRET = change_me_into_something_secret
SECRET_KEY = change_me_into_something_secret
SESSION_COOKIE_NAME=atat