Files
Anton Arefiev
651cb1ad75
Add toggle to run Cinder API under Apache
This change adds apache templates for Cinder API services. Also add possibility to switch between the old and new ways to setup Cinder API. Related Cinder blueprint: https://blueprints.launchpad.net/cinder/+spec/non-eventlet-wsgi-app Change-Id: Icfad40ee6998296727a95613199e5c2d87bd0a45 Depends-On: Ifbab059001d1567b1f7b394c0411a9ca4629f846 Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
27 lines
733 B
Plaintext
27 lines
733 B
Plaintext
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess osapi_volume processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup osapi_volume
WSGIScriptAlias / %CINDER_BIN_DIR%/cinder-wsgi
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/c-api.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
<Directory %CINDER_BIN_DIR%>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>