Sha256: e9633fb96640617757043672b0078c7bbd0e164ec4cf7307894ab826d4ddd75b

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

<% if fetch(:pwa_major_domain, false) %>
  <% domain_list = [fetch(:pwa_major_domain, "").to_s.gsub(/^\*?\./, "")] %>
<% else %>
  <% domain_list = [] %>
  <% Array(fetch(:pwa_domains)).each do |domain| %>
    <% domain_list << domain.gsub(/^\*?\./, "") %>
  <% end %>
<% end %>
# Check PWA domains for <%= fetch(:application) %> [<%= fetch(:stage) %>]
<% domain_list.uniq.each do |domain| %>
check host <%= domain %> with address <%= domain %>
  if failed 
  <% if fetch(:pwa_use_ssl) %>
    port 443
    type TCPSSL
    protocol https
  <% else %>
    port 80
    protocol http
  <% end %>
    with timeout 13 seconds for 5 cycles 
  then <%= monit_alert %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.95 lib/generators/capistrano/magic_recipes/templates/monit/pwa.erb