Açıklama Yok
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.2KB

123456789101112131415161718192021222324252627282930313233343536
  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. DocumentRoot "{{ item.doc_root }}"
  12. DirectoryIndex index.html
  13. Options -Indexes
  14. HostnameLookups Off
  15. LogLevel warn
  16. ErrorLog /var/log/apache2/grafana.info-error_log
  17. CustomLog /var/log/apache2/grafana.info-access_log common
  18. Alias /mqtt /var/www/mqtt-admin
  19. ProxyPassMatch ^/mqtt !
  20. ProxyRequests Off
  21. ProxyPreserveHost On
  22. ProxyPass /nodered/ http://localhost:1880/
  23. ProxyPassReverse /nodered/ http://localhost:1880/
  24. ProxyPass /monit/ http://localhost:2812/
  25. ProxyPassReverse /monit/ http://localhost:2812/
  26. ProxyPass / http://localhost:{{ grafana_internal_port }}/
  27. ProxyPassReverse / http://localhost:{{ grafana_internal_port }}/
  28. </VirtualHost>