Sha256: f7c6ddfb381af3421e4c855faa7cbd3b14b0330f466bc53bd59f0722d59484d9
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
<% if fetch(:nginx_major_domain, false) %> <% domain_list = [fetch(:nginx_major_domain, "").to_s.gsub(/^\*?\./, "")] %> <% else %> <% domain_list = [] %> <% Array(fetch(:nginx_domains)).each do |domain| %> <% domain_list << domain.gsub(/^\*?\./, "") %> <% end %> <% end %> # Check domains on port 80 <%= "(and 443 if ssl is on)" if fetch(:nginx_use_ssl) %> for <%= fetch(:application) %> [<%= fetch(:stage) %>] <% domain_list.uniq.each do |domain| %> check host <%= domain %> with address <%= domain %> if failed <% if fetch(:nginx_use_ssl) %> port 443 type TCPSSL protocol https <% else %> port 80 protocol http <% end %> <% if fetch(:monit_website_check_content, false) %> request "<%= fetch(:monit_website_check_path, '/') %>" content = "<%= fetch(:monit_website_check_text, '<!DOCTYPE html>') %>" <% end %> # status = 200 with timeout <%= fetch(:monit_website_check_timeout, 10) %> seconds for <%= fetch(:monit_website_check_cycles, 3) %> cycles then alert <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_recipes_two-0.0.94 | lib/generators/capistrano/magic_recipes/templates/monit/website.erb |
magic_recipes_two-0.0.93 | lib/generators/capistrano/magic_recipes/templates/monit/website.erb |