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).
28 lines
777 B
INI
28 lines
777 B
INI
[default]
|
|
CAC_URL = http://localhost:8000/login-redirect
|
|
CA_CHAIN = ssl/server-certs/ca-chain.pem
|
|
COOKIE_SECRET = some-secret-please-replace
|
|
CRL_DIRECTORY = crl
|
|
DEBUG = true
|
|
ENVIRONMENT = dev
|
|
PERMANENT_SESSION_LIFETIME = 600
|
|
PE_NUMBER_CSV_URL = http://c95e1ebb198426ee57b8-174bb05a294821bedbf46b6384fe9b1f.r31.cf5.rackcdn.com/penumbers.csv
|
|
PGAPPNAME = atst
|
|
PGDATABASE = atat
|
|
PGHOST = localhost
|
|
PGPASSWORD = postgres
|
|
PGPORT = 5432
|
|
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
|
|
SESSION_TYPE = redis
|
|
SESSION_USE_SIGNER = True
|
|
STORAGE_CONTAINER=uploads
|
|
STORAGE_PROVIDER=LOCAL
|
|
WTF_CSRF_ENABLED = true
|