mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
2b9954c373
- Secretification of secret stuff - Backup / restore
23 lines
661 B
Django/Jinja
23 lines
661 B
Django/Jinja
DATABASES = {
|
|
'default': {
|
|
'ATOMIC_REQUESTS': True,
|
|
'ENGINE': 'django.db.backends.postgresql',
|
|
'NAME': "{{ pg_database }}",
|
|
'USER': "{{ pg_username }}",
|
|
'PASSWORD': "{{ pg_password }}",
|
|
'HOST': "{{ pg_hostname|default('postgresql') }}",
|
|
'PORT': "{{ pg_port }}",
|
|
}
|
|
}
|
|
BROKER_URL = 'amqp://{}:{}@{}:{}/{}'.format(
|
|
"{{ rabbitmq_user }}",
|
|
"{{ rabbitmq_password }}",
|
|
"localhost",
|
|
"5672",
|
|
"awx")
|
|
CHANNEL_LAYERS = {
|
|
'default': {'BACKEND': 'asgi_amqp.AMQPChannelLayer',
|
|
'ROUTING': 'awx.main.routing.channel_routing',
|
|
'CONFIG': {'url': BROKER_URL}}
|
|
}
|