mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Make UI always use https:// but API traffic that wants to can still get http://
This commit is contained in:
parent
7722799abf
commit
82f385237a
@ -1,12 +1,24 @@
|
|||||||
|
WSGISocketPrefix /var/run/wsgi
|
||||||
|
|
||||||
<VirtualHost _default_:80>
|
<VirtualHost _default_:80>
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
# don't redirect HTTPs
|
||||||
|
RewriteCond %{HTTPS} off
|
||||||
|
# don't redirect /api traffic that requested explicit http://
|
||||||
|
RewriteRule ^/api - [L]
|
||||||
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
||||||
|
|
||||||
ServerName localhost
|
ServerName localhost
|
||||||
ServerAlias localhost
|
ServerAlias localhost
|
||||||
ServerAlias 127.0.0.1
|
ServerAlias 127.0.0.1
|
||||||
DocumentRoot /var/lib/awx/public
|
DocumentRoot /var/lib/awx/public
|
||||||
|
|
||||||
RewriteEngine On
|
WSGIScriptAlias / /var/lib/awx/wsgi.py
|
||||||
RewriteCond %{HTTPS} off
|
WSGIPassAuthorization On
|
||||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
|
||||||
|
WSGIDaemonProcess awx_plain user=awx group=awx processes=2 threads=20 maximum-requests=1000 display-name="%{GROUP}"
|
||||||
|
WSGIProcessGroup awx_plain
|
||||||
|
|
||||||
Alias /favicon.ico /var/lib/awx/public/static/favicon.ico
|
Alias /favicon.ico /var/lib/awx/public/static/favicon.ico
|
||||||
Alias /static/ /var/lib/awx/public/static/
|
Alias /static/ /var/lib/awx/public/static/
|
||||||
@ -23,4 +35,5 @@
|
|||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|||||||
@ -14,7 +14,6 @@ LoadModule ssl_module modules/mod_ssl.so
|
|||||||
WSGIScriptAlias / /var/lib/awx/wsgi.py
|
WSGIScriptAlias / /var/lib/awx/wsgi.py
|
||||||
WSGIPassAuthorization On
|
WSGIPassAuthorization On
|
||||||
|
|
||||||
# FIXME: May want to tune these parameters after performance testing.
|
|
||||||
WSGIDaemonProcess awx user=awx group=awx processes=2 threads=20 maximum-requests=1000 display-name="%{GROUP}"
|
WSGIDaemonProcess awx user=awx group=awx processes=2 threads=20 maximum-requests=1000 display-name="%{GROUP}"
|
||||||
WSGIProcessGroup awx
|
WSGIProcessGroup awx
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user