Files
freezer-api/devstack/files/apache-freezer-api.template
Tim Buckley 0fef37e57a Listen on 127.0.0.1 in devstack
To allow monitoring checks to work, the API should additionally listen
on 127.0.0.1. This changes the devstack plugin so the generated apache
configuration will allow monasca to work without additional tweaking
in a dev environment.

Change-Id: Iaca8eac43d66de5a08e85cf58d7af42c29618bca
2016-07-12 11:40:43 -06:00

26 lines
825 B
Plaintext

Listen %SERVICE_HOST%:%FREEZER_API_PORT%
# Placeholder to conditionally insert a 'Listen 127.0.0.1' directive when
# %SERVICE_HOST% is not already 127.0.0.1
%LOCAL_LISTEN%
<VirtualHost *:%FREEZER_API_PORT%>
WSGIDaemonProcess freezer-api processes=2 threads=2 user=%USER% display-name=%{GROUP}
WSGIProcessGroup freezer-api
WSGIApplicationGroup freezer-api
WSGIScriptAlias / %FREEZER_API_DIR%/freezer_api/cmd/wsgi.py
ErrorLog /var/log/%APACHE_NAME%/freezer-api.log
CustomLog /var/log/%APACHE_NAME%/freezer-api_access.log combined
LogLevel info
<Directory %FREEZER_API_DIR%/freezer_api>
Options Indexes FollowSymLinks MultiViews
Require all granted
AllowOverride None
Order allow,deny
allow from all
LimitRequestBody 102400
</Directory>
</VirtualHost>