Enable simple CORS requests

Graphite needs to enable simple CORS requests so that third-party
services that want to pull data via the API to build things like
interactive graphs and visualization dashboards can do that.

Change-Id: I34a422c787118425aa484fa980aadd47cbf197e2
This commit is contained in:
Timothy Chavez 2015-04-03 11:28:13 -05:00
parent 0e3d87fbb3
commit fe1b569e5b
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
ErrorLog /var/log/apache2/graphite-error.log
CustomLog /var/log/apache2/graphite-access.log common
# Add CORS authorization to the header so third-party services can pull
# metrics data via API calls for things like vizualiation dashboards.
Header set Access-Control-Allow-Origin "*"
# I've found that an equal number of processes & threads tends
# to show the best performance for Graphite (ymmv).
WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120