nginx_vhost.j2 517 B

123456789101112131415161718192021
  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. access_log /var/log/nginx/munin.access.log;
  9. error_log /var/log/nginx/munin.error.log;
  10. location / {
  11. {% if with_munin_http_auth %}
  12. auth_basic "Restricted Access";
  13. auth_basic_user_file /etc/nginx/auth_admin;
  14. {% endif %}
  15. root /var/cache/munin/www/;
  16. break;
  17. }
  18. }