37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
<%= node['openstack']['compute']['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 @use_ssl -%>
|
|
|
|
SSLEngine On
|
|
SSLCertificateFile <%= @cert_file %>
|
|
SSLCertificateKeyFile <%= @key_file %>
|
|
SSLCACertificatePath <%= @ca_certs_path %>
|
|
<% unless @chain_file.empty? %>
|
|
SSLCertificateChainFile <%= @chain_file %>
|
|
<% end -%>
|
|
SSLProtocol <%= @protocol %>
|
|
<% unless @ciphers.empty? -%>
|
|
SSLCipherSuite <%= @ciphers %>
|
|
<% end -%>
|
|
<% if @cert_required -%>
|
|
SSLVerifyClient require
|
|
<% end -%>
|
|
<% end -%>
|
|
</VirtualHost>
|
|
|
|
WSGISocketPrefix <%= @run_dir -%>
|