No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_apache2_sites-available_grafana.j2 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <VirtualHost *:80>
  2. ServerName {{ grafana_subdomain }}.{{ item.name }}
  3. ServerAlias {{ grafana_subdomain }}
  4. Redirect temp / https://{{ grafana_subdomain }}.{{ item.name }}/
  5. </VirtualHost>
  6. <VirtualHost *:443>
  7. ServerName {{ grafana_subdomain }}.{{ item.name }}
  8. ServerAlias {{ grafana_subdomain }}
  9. ServerAlias {{ domain }}
  10. SSLEngine On
  11. SSLProxyEngine On
  12. DocumentRoot "{{ item.doc_root }}"
  13. DirectoryIndex index.html
  14. Options -Indexes
  15. HostnameLookups Off
  16. LogLevel warn
  17. ErrorLog /var/log/apache2/grafana.info-error_log
  18. CustomLog /var/log/apache2/grafana.info-access_log common
  19. Alias /mqtt /var/www/mqtt-admin
  20. ProxyPassMatch ^/mqtt !
  21. ProxyRequests Off
  22. ProxyPreserveHost On
  23. ProxyPass /nodered/comms ws://localhost:1880/comms
  24. ProxyPassReverse /nodered/comms ws://localhost:1880/comms
  25. ProxyPass /nodered/ http://localhost:1880/
  26. ProxyPassReverse /nodered/ http://localhost:1880/
  27. ProxyPass /monit/ http://localhost:2812/
  28. ProxyPassReverse /monit/ http://localhost:2812/
  29. ProxyPass / http://localhost:{{ grafana_internal_port }}/
  30. ProxyPassReverse / http://localhost:{{ grafana_internal_port }}/
  31. </VirtualHost>