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:
parent
49992e58df
commit
4bbb55a06e
@ -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"]],
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user