Sha256: 6949d9cf545621469602e9dc00f71ee849c97192f7a4f97721407370ada7f0b5

Contents?: true

Size: 1 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.95 lib/generators/capistrano/magic_recipes/templates/nginx_monit.conf.erb