mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Move cert and key files to tower.cert and tower.key.
This commit is contained in:
@@ -156,10 +156,10 @@ class Command(NoArgsCommand):
|
|||||||
socketio_notification_port = settings.SOCKETIO_NOTIFICATION_PORT
|
socketio_notification_port = settings.SOCKETIO_NOTIFICATION_PORT
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists('/etc/tower/awx.cert') and os.path.exists('/etc/tower/awx.key'):
|
if os.path.exists('/etc/tower/tower.cert') and os.path.exists('/etc/tower/tower.key'):
|
||||||
print 'Listening on port https://0.0.0.0:' + str(socketio_listen_port)
|
print 'Listening on port https://0.0.0.0:' + str(socketio_listen_port)
|
||||||
server = SocketIOServer(('0.0.0.0', socketio_listen_port), TowerSocket(), resource='socket.io',
|
server = SocketIOServer(('0.0.0.0', socketio_listen_port), TowerSocket(), resource='socket.io',
|
||||||
keyfile='/etc/tower/awx.key', certfile='/etc/tower/awx.cert')
|
keyfile='/etc/tower/tower.key', certfile='/etc/tower/tower.cert')
|
||||||
else:
|
else:
|
||||||
print 'Listening on port http://0.0.0.0:' + str(socketio_listen_port)
|
print 'Listening on port http://0.0.0.0:' + str(socketio_listen_port)
|
||||||
server = SocketIOServer(('0.0.0.0', socketio_listen_port), TowerSocket(), resource='socket.io')
|
server = SocketIOServer(('0.0.0.0', socketio_listen_port), TowerSocket(), resource='socket.io')
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ WSGISocketPrefix /var/run/wsgi
|
|||||||
ServerAlias *
|
ServerAlias *
|
||||||
DocumentRoot /var/lib/awx/public
|
DocumentRoot /var/lib/awx/public
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLCertificateFile /etc/tower/awx.cert
|
SSLCertificateFile /etc/tower/tower.cert
|
||||||
SSLCertificateKeyFile /etc/tower/awx.key
|
SSLCertificateKeyFile /etc/tower/tower.key
|
||||||
|
|
||||||
WSGIScriptAlias / /var/lib/awx/wsgi.py
|
WSGIScriptAlias / /var/lib/awx/wsgi.py
|
||||||
WSGIPassAuthorization On
|
WSGIPassAuthorization On
|
||||||
|
|||||||
Reference in New Issue
Block a user