Sha256: f5875f263bdf6fe06b64c0313a6ede6216809c572737be75f7077653a7a2015c

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

# Monit - WebInterface
<% if fetch(:monit_webclient_use_ssl, false) %>
server {
  listen                80;
  server_name           <%= fetch(:monit_webclient_domain) %>;
  return 301 https://$host$request_uri;
}
<% end %>



server {
<% if fetch(:monit_webclient_use_ssl) %>
  listen                443 ssl http2;
  #listen                [::]:443 ssl http2;
  ssl                   on;
  ssl_certificate       <%= fetch(:monit_webclient_ssl_cert) %>;
  ssl_certificate_key   <%= fetch(:monit_webclient_ssl_key) %>;
  <%= magic_render("nginx/diffie_hellman") %>
<% else %>
  listen                80;
  listen                [::]:80;
<% end %>
  
  server_name           <%= fetch(:monit_webclient_domain) %>;
  
  location ^~ /.well-known/ {
    allow         all;
    # root          /tmp/monit/well_known;
    root          <%= current_path %>/public;
  }
  location / {
      proxy_set_header   X-Real-IP $remote_addr;
      proxy_set_header   Host      $http_host;
      proxy_pass         http://127.0.0.1:2812;
  }
  
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.94 lib/generators/capistrano/magic_recipes/templates/nginx_monit.conf.erb
magic_recipes_two-0.0.93 lib/generators/capistrano/magic_recipes/templates/nginx_monit.conf.erb
magic_recipes_two-0.0.91 lib/generators/capistrano/magic_recipes/templates/nginx_monit.conf.erb
magic_recipes_two-0.0.90 lib/generators/capistrano/magic_recipes/templates/nginx_monit.conf.erb
magic_recipes_two-0.0.89 lib/generators/capistrano/magic_recipes/templates/nginx_monit.conf.erb