59bf86c75c
+ Disable epel after graphite install and after grafana install + Add readme for cfme-all-in-one + Allow port to be changed for graphite/grafana + Automated adding graphite as data source + Removed grafana api key usage from dashboards-generic, dashboards-openstack + wait for grafana to be ready for new data source Change-Id: I97235d60032d60061790f99d6d811ecc9d6f4c36
42 lines
1.3 KiB
Django/Jinja
42 lines
1.3 KiB
Django/Jinja
# Graphite Web Basic mod_wsgi vhost
|
|
{% if graphite_port != 80 %}
|
|
Listen {{graphite_port}}
|
|
{% endif %}
|
|
<VirtualHost *:{{graphite_port}}>
|
|
DocumentRoot "/usr/share/graphite/webapp"
|
|
ErrorLog /var/log/httpd/graphite-web-error.log
|
|
CustomLog /var/log/httpd/graphite-web-access.log common
|
|
|
|
# Header set Access-Control-Allow-Origin "*"
|
|
# Header set Access-Control-Allow-Methods "GET, OPTIONS"
|
|
# Header set Access-Control-Allow-Headers "origin, authorization, accept"
|
|
# Header set Access-Control-Allow-Credentials true
|
|
|
|
WSGIScriptAlias / /usr/share/graphite/graphite-web.wsgi
|
|
WSGIImportScript /usr/share/graphite/graphite-web.wsgi process-group=%{GLOBAL} application-group=%{GLOBAL}
|
|
|
|
<Location "/content/">
|
|
SetHandler None
|
|
</Location>
|
|
|
|
Alias /media/ "/usr/lib/python2.7/site-packages/django/contrib/admin/media/"
|
|
<Location "/media/">
|
|
SetHandler None
|
|
</Location>
|
|
|
|
<Directory "/usr/share/graphite/">
|
|
<IfModule mod_authz_core.c>
|
|
# Apache 2.4
|
|
Require all granted
|
|
Require local
|
|
</IfModule>
|
|
<IfModule !mod_authz_core.c>
|
|
# Apache 2.2
|
|
Order Deny,Allow
|
|
Deny from all
|
|
Allow from 127.0.0.1
|
|
Allow from ::1
|
|
</IfModule>
|
|
</Directory>
|
|
</VirtualHost>
|