mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 19:20:05 -03:30
Adding ability to run "make rpm"
This commit is contained in:
32
config/ansibleworks.conf
Normal file
32
config/ansibleworks.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
NameVirtualHost *:80
|
||||
WSGISocketPrefix run/wsgi
|
||||
|
||||
<VirtualHost _default_:80>
|
||||
ServerName localhost
|
||||
ServerAlias localhost
|
||||
ServerAlias 127.0.0.1
|
||||
DocumentRoot /var/lib/ansibleworks/public
|
||||
|
||||
WSGIScriptAlias / /var/lib/ansibleworks/wsgi.py
|
||||
WSGIPassAuthorization On
|
||||
|
||||
# FIXME: May want to tune these parameters after performance testing.
|
||||
WSGIDaemonProcess ansibleworks user=ansibleworks group=ansibleworks processes=2 threads=20 maximum-requests=1000 display-name="%{GROUP}"
|
||||
WSGIProcessGroup ansibleworks
|
||||
|
||||
Alias /favicon.ico /var/lib/ansibleworks/public/static/favicon.ico
|
||||
Alias /static/ /var/lib/ansibleworks/public/static/
|
||||
|
||||
<Directory /var/lib/ansibleworks/>
|
||||
<Files wsgi.py>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Files>
|
||||
</Directory>
|
||||
|
||||
<Directory /var/lib/ansibleworks/public/>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
41
config/settings.py
Normal file
41
config/settings.py
Normal file
@@ -0,0 +1,41 @@
|
||||
ADMINS = (
|
||||
#('Joe Admin', 'joeadmin@example.com'),
|
||||
)
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'ansibleworks',
|
||||
'USER': 'ansibleworks',
|
||||
'PASSWORD': 'AWsecret',
|
||||
'HOST': '',
|
||||
'PORT': '',
|
||||
}
|
||||
}
|
||||
|
||||
STATIC_ROOT = '/var/lib/ansibleworks/public/static'
|
||||
|
||||
PROJECTS_ROOT = '/var/lib/ansibleworks/projects'
|
||||
|
||||
SECRET_KEY = file('/etc/ansibleworks/SECRET_KEY', 'rb').read().strip()
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
LOGGING['handlers']['syslog'] = {
|
||||
'level': 'ERROR',
|
||||
'filters': ['require_debug_false'],
|
||||
'class': 'logging.handlers.SysLogHandler',
|
||||
'address': '/dev/log',
|
||||
'facility': 'local0',
|
||||
'formatter': 'simple',
|
||||
}
|
||||
|
||||
SERVER_EMAIL = 'root@localhost'
|
||||
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
|
||||
EMAIL_SUBJECT_PREFIX = '[AnsibleWorks] '
|
||||
|
||||
EMAIL_HOST = 'localhost'
|
||||
EMAIL_PORT = 25
|
||||
EMAIL_HOST_USER = ''
|
||||
EMAIL_HOST_PASSWORD = ''
|
||||
EMAIL_USE_TLS = False
|
||||
Reference in New Issue
Block a user