43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
<%= node['openstack']['compute']['custom_template_banner'] %>
|
|
|
|
Listen <%= @params[:server_host] %>:<%= @params[:server_port] %>
|
|
|
|
<VirtualHost <%= @params[:server_host] %>:<%= @params[:server_port] %>>
|
|
WSGIDaemonProcess <%= @params[:daemon_process] %> processes=2 threads=10 user=<%= @params[:user] %> group=<%= @params[:group] %> display-name=%{GROUP}
|
|
WSGIProcessGroup <%= @params[:daemon_process] %>
|
|
WSGIScriptAlias / <%= @params[:server_entry] %>
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
|
|
<Directory /usr/bin>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
ErrorLog <%= @params[:log_dir] %>/<%= @params[:daemon_process] %>_error.log
|
|
CustomLog <%= @params[:log_dir] %>/<%= @params[:daemon_process] %>_access.log combined
|
|
<% if [true, 'true', 'True'].include?(@params[:log_debug]) -%>
|
|
LogLevel debug
|
|
<% end -%>
|
|
|
|
<% if @params[:use_ssl] -%>
|
|
SSLEngine On
|
|
SSLCertificateFile <%= @params[:cert_file] %>
|
|
SSLCertificateKeyFile <%= @params[:key_file] %>
|
|
SSLCACertificatePath <%= @params[:ca_certs_path] %>
|
|
<% if @params[:chain_file] %>
|
|
SSLCertificateChainFile <%= @params[:chain_file] %>
|
|
<% end -%>
|
|
SSLProtocol <%= @params[:protocol] %>
|
|
<% if @params[:ciphers] -%>
|
|
SSLCipherSuite <%= @params[:ciphers] %>
|
|
<% end -%>
|
|
<% if @params[:cert_required] -%>
|
|
SSLVerifyClient require
|
|
<% end -%>
|
|
<% end -%>
|
|
</VirtualHost>
|
|
|
|
WSGISocketPrefix <%= @params[:run_dir] -%>
|
|
|