설명 없음
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 1005B

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