talas-group/04_INFRA_DEPLOIEMENT/Ansible/roles/postgres-explain-visualizer/templates/config.py.j2

16 lines
531 B
Text
Raw Normal View History

# {{ ansible_managed }}
WTF_CSRF_ENABLED = False
SECRET_KEY = "{{ pev_secret_key }}"
DB_NAME = "pev"
DB_USER = "pev"
DB_PASS = "{{ lookup('hashi_vault', 'secret=cosium-kv/data/' + host_vars_location + '/' + ansible_hostname)['postgres_user_pev_password'] }}"
DB_SERVICE = "127.0.0.1"
DB_PORT = 5432
SQLALCHEMY_DATABASE_URI = 'postgresql://{0}:{1}@{2}:{3}/{4}'.format(
DB_USER, DB_PASS, DB_SERVICE, DB_PORT, DB_NAME
)
DEBUG_TB_INTERCEPT_REDIRECTS = False
DEBUG_TB_PROFILER_ENABLED = True
SQLALCHEMY_TRACK_MODIFICATIONS = False