1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-05 05:51:21 +03:00
awx/config/rpm/settings.py

57 lines
1.4 KiB
Python
Raw Normal View History

2013-06-15 12:10:11 +04:00
ADMINS = (
#('Joe Admin', 'joeadmin@example.com'),
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
2013-06-23 21:21:02 +04:00
'NAME': 'awx',
'USER': 'awx',
2013-06-15 12:10:11 +04:00
'PASSWORD': 'AWsecret',
'HOST': '',
'PORT': '',
}
}
# Use SQLite for unit tests instead of PostgreSQL.
if len(sys.argv) >= 2 and sys.argv[1] == 'test':
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'var/lib/awx/awx.sqlite3',
# Test database cannot be :memory: for celery/inventory tests.
'TEST_NAME': '/var/lib/awx/awx_test.sqlite3',
}
}
2013-06-23 21:21:02 +04:00
STATIC_ROOT = '/var/lib/awx/public/static'
2013-06-15 12:10:11 +04:00
2013-06-23 21:21:02 +04:00
PROJECTS_ROOT = '/var/lib/awx/projects'
2013-06-15 12:10:11 +04:00
2013-06-23 21:21:02 +04:00
SECRET_KEY = file('/etc/awx/SECRET_KEY', 'rb').read().strip()
2013-06-15 12:10:11 +04:00
ALLOWED_HOSTS = ['*']
LOGGING['handlers']['syslog'] = {
# ERROR captures 500 errors, WARNING also logs 4xx responses.
2013-06-15 12:10:11 +04:00
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'logging.handlers.SysLogHandler',
'address': '/dev/log',
'facility': 'local0',
'formatter': 'simple',
}
AWX_TASK_ENV['HOME'] = '/var/lib/awx'
AWX_TASK_ENV['USER'] = 'awx'
2013-06-15 12:10:11 +04:00
SERVER_EMAIL = 'root@localhost'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
2013-06-23 23:40:07 +04:00
EMAIL_SUBJECT_PREFIX = '[AnsibleWorks] '
2013-06-15 12:10:11 +04:00
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False