-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters