28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
|
<% unless [443, 80].include?(scope.lookupvar("openstack_health::api::vhost_port").to_i) %>
|
||
|
Listen <%= scope.lookupvar("openstack_health::api::vhost_port") %>
|
||
|
<% end %>
|
||
|
WSGIPythonHome <%= scope.lookupvar("openstack_health::api::virtualenv_dir") %>
|
||
|
<VirtualHost *:<%= scope.lookupvar("openstack_health::api::vhost_port") %>>
|
||
|
ServerName <%= scope.lookupvar("openstack_health::api::vhost_name") %>
|
||
|
ServerAdmin <%= scope.lookupvar("openstack_health::api::server_admin") %>
|
||
|
|
||
|
LogLevel info
|
||
|
CustomLog ${APACHE_LOG_DIR}/openstack-health-api-access.log combined
|
||
|
ErrorLog ${APACHE_LOG_DIR}/openstack-health-api-error.log
|
||
|
|
||
|
WSGIDaemonProcess flask user=openstack_health group=openstack_health threads=5 home=<%= scope.lookupvar("openstack_health::api::source_dir") %>
|
||
|
WSGIScriptAlias / <%= scope.lookupvar("openstack_health::api::virtualenv_dir") %>/bin/openstack-health
|
||
|
|
||
|
<Directory <%= scope.lookupvar("openstack_health::api::virtualenv_dir") %>/bin>
|
||
|
WSGIProcessGroup flask
|
||
|
WSGIApplicationGroup %{GLOBAL}
|
||
|
WSGIScriptReloading On
|
||
|
|
||
|
Order allow,deny
|
||
|
Allow from all
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
DocumentRoot <%= scope.lookupvar("openstack_health::api::api_dir") %>
|
||
|
</VirtualHost>
|