nginx_vhost.j2 563 B

12345678910111213141516171819202122
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Nginx vhost for munin master
  6. server {
  7. server_name {{ munin_master_vhostname }};
  8. listen {{ munin_master_vhostport }};
  9. access_log /var/log/nginx/munin.access.log;
  10. error_log /var/log/nginx/munin.error.log;
  11. location / {
  12. {% if with_munin_http_auth %}
  13. auth_basic "Restricted Access";
  14. auth_basic_user_file {{ munin_http_auth_file }};
  15. {% endif %}
  16. root /var/cache/munin/www/;
  17. break;
  18. }
  19. }