59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
#
|
|
# This file autogenerated by Puppet
|
|
# Do not edit, changes will be overwritten
|
|
#
|
|
<%
|
|
if @memorysize_mb.to_i < 1200 or @processorcount.to_i <= 3
|
|
wsgi_daemon_processes = 3
|
|
wsgi_daemon_threads = 10
|
|
else
|
|
wsgi_daemon_processes = @processorcount
|
|
wsgi_daemon_threads = 15
|
|
end
|
|
|
|
if @osfamily == 'RedHat' %>
|
|
WSGIDaemonProcess dashboard processes=<%= wsgi_daemon_processes %> threads=<%= wsgi_daemon_threads %>
|
|
WSGIProcessGroup dashboard
|
|
WSGISocketPrefix run/wsgi
|
|
|
|
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
|
|
Alias /static /usr/share/openstack-dashboard/static
|
|
|
|
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
|
|
<IfModule mod_deflate.c>
|
|
SetOutputFilter DEFLATE
|
|
<IfModule mod_headers.c>
|
|
# Make sure proxies don’t deliver the wrong content
|
|
Header append Vary User-Agent env=!dont-vary
|
|
</IfModule>
|
|
</IfModule>
|
|
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
<Directory /usr/share/openstack-dashboard/static>
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresDefault "access 6 month"
|
|
</IfModule>
|
|
<IfModule mod_deflate.c>
|
|
SetOutputFilter DEFLATE
|
|
</IfModule>
|
|
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
<%
|
|
end
|
|
if @osfamily == 'Debian' %>
|
|
WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
|
|
WSGIDaemonProcess horizon user=horizon group=horizon processes=<%= wsgi_daemon_processes %> threads=<%= wsgi_daemon_threads %>
|
|
WSGIProcessGroup horizon
|
|
Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
|
|
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
<% end %>
|