37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
<%= node["openstack"]["block-storage"]["custom_template_banner"] %>
|
|
|
|
<VirtualHost <%= @server_host %>:<%= @server_port %>>
|
|
WSGIDaemonProcess <%= @daemon_process %> processes=2 threads=10 user=<%= @user %> group=<%= @group %> display-name=%{GROUP}
|
|
WSGIProcessGroup <%= @daemon_process %>
|
|
WSGIScriptAlias / <%= @server_entry %>
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
|
|
<Directory /usr/bin>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
ErrorLog <%= @log_dir %>/<%= @daemon_process %>_error.log
|
|
CustomLog <%= @log_dir %>/<%= @daemon_process %>_access.log combined
|
|
<% if node['openstack']['block-storage']['ssl']['enabled'] -%>
|
|
|
|
SSLEngine On
|
|
SSLCertificateFile <%= node['openstack']['block-storage']['ssl']['certfile'] %>
|
|
SSLCertificateKeyFile <%= node['openstack']['block-storage']['ssl']['keyfile'] %>
|
|
SSLCACertificatePath <%= node['openstack']['block-storage']['ssl']['ca_certs_path'] %>
|
|
<% unless node['openstack']['block-storage']['ssl']['chainfile'].empty? %>
|
|
SSLCertificateChainFile <%= node['openstack']['block-storage']['ssl']['chainfile'] %>
|
|
<% end -%>
|
|
SSLProtocol <%= node['openstack']['block-storage']['ssl']['protocol'] %>
|
|
<% unless node['openstack']['block-storage']['ssl']['ciphers'].empty? -%>
|
|
SSLCipherSuite <%= node['openstack']['block-storage']['ssl']['ciphers'] %>
|
|
<% end -%>
|
|
<% if node['openstack']['block-storage']['ssl']['cert_required'] -%>
|
|
SSLVerifyClient require
|
|
<% end -%>
|
|
<% end -%>
|
|
</VirtualHost>
|
|
|
|
WSGISocketPrefix <%= @run_dir -%>
|