Bez popisu
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 925B

1234567891011121314151617181920212223242526
  1. <VirtualHost *:80>
  2. ServerName {{ grafana_subdomain }}.{{ item.name }}
  3. Redirect temp / https://{{ grafana_subdomain }}.{{ item.name }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ grafana_subdomain }}.{{ item.name }}
  7. SSLEngine On
  8. DocumentRoot "{{ item.doc_root }}"
  9. DirectoryIndex index.html
  10. Options -Indexes
  11. HostnameLookups Off
  12. LogLevel warn
  13. ErrorLog /var/log/apache2/grafana.info-error_log
  14. CustomLog /var/log/apache2/grafana.info-access_log common
  15. Alias /mqtt /var/www/mqtt-admin
  16. ProxyPassMatch ^/mqtt !
  17. ProxyRequests Off
  18. ProxyPreserveHost On
  19. ProxyPass / http://localhost:{{ grafana_internal_port }}/
  20. ProxyPassReverse / http://localhost:{{ grafana_internal_port }}/
  21. </VirtualHost>