mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Fix official image builds
I broke everything in https://github.com/ansible/awx/pull/11242. These changes were necessary in order to run `awx-manage collectstatic` without a running database.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
# AWX settings file
|
||||
|
||||
import os
|
||||
import base64
|
||||
|
||||
|
||||
def get_secret():
|
||||
if os.path.exists("/etc/tower/SECRET_KEY"):
|
||||
return open('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
||||
else:
|
||||
return base64.encodebytes(os.urandom(32)).decode().rstrip()
|
||||
|
||||
|
||||
ADMINS = ()
|
||||
@@ -44,6 +47,7 @@ LOGGING['handlers']['console'] = {
|
||||
'()': 'logging.StreamHandler',
|
||||
'level': 'DEBUG',
|
||||
'formatter': 'simple',
|
||||
'filters': ['guid'],
|
||||
}
|
||||
|
||||
LOGGING['loggers']['django.request']['handlers'] = ['console']
|
||||
@@ -62,6 +66,9 @@ LOGGING['handlers']['tower_warnings'] = {'class': 'logging.NullHandler'}
|
||||
LOGGING['handlers']['rbac_migrations'] = {'class': 'logging.NullHandler'}
|
||||
LOGGING['handlers']['system_tracking_migrations'] = {'class': 'logging.NullHandler'}
|
||||
LOGGING['handlers']['management_playbooks'] = {'class': 'logging.NullHandler'}
|
||||
LOGGING['handlers']['dispatcher'] = {'class': 'logging.NullHandler'}
|
||||
LOGGING['handlers']['job_lifecycle'] = {'class': 'logging.NullHandler'}
|
||||
LOGGING['handlers']['wsbroadcast'] = {'class': 'logging.NullHandler'}
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
||||
Reference in New Issue
Block a user