Sha256: 3b02eb4a796bc7aa157edd7bb38d5ce5710ee882efa6aa53fbc7643d2b2eb7b0

Contents?: true

Size: 1.39 KB

Versions: 117

Compression:

Stored size: 1.39 KB

Contents

<%
  @path = "/etc/nginx/rubber/tools.conf"
%>


# This server is setup to serve http.
server
{
  listen <%= rubber_env.web_tools_port %>;
  server_name <%= rubber_env.full_host %>;
  root /var/www;

  rewrite (.*) https://$host:<%= rubber_env.web_tools_ssl_port %>$1 break;
}

# This server is setup to serve https.
server
{
  listen <%= rubber_env.web_tools_ssl_port %>;
  server_name <%= rubber_env.full_host %>;

  ssl                  on;
  ssl_certificate    /etc/ssl/certs/ssl-cert-snakeoil.pem;
  ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
  # ssl_certificate      <%= RUBBER_ROOT %>/config/snapmylife.com.crt;
  # ssl_certificate_key  <%= RUBBER_ROOT %>/config/snapmylife.com.key;

  auth_basic            "Rubber Admin Tools";
  auth_basic_user_file  <%= RUBBER_ROOT %>/config/<%= rubber_env.app_name %>.auth;

  client_max_body_size 10M;
  root /var/www;


  location /
  {
    # If the file exists as a static file serve it directly without
    # running all the other rewrite tests on it
    if (-f $request_filename)
    {
      break;
    }

    # check for index.html for directory index
    # if its there on the filesystem then rewite
    # the url to add /index.html to the end of it
    # and then break to send it to the next config rules.
    if (-f $request_filename/index.html)
    {
      rewrite (.*) $1/index.html break;
    }
  }

  include /etc/nginx/rubber/tools/*.conf;
}

Version data entries

117 entries across 72 versions & 7 rubygems

Version Path
rubber-1.5.4 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.3 lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.3 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.2 lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.2 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.1 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.1 lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.0 lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.5.0 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
nirvdrum-rubber-2.0.0.rails3.beta6 lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
nirvdrum-rubber-2.0.0.rails3.beta6 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.3.2 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.3.1 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.3.0 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
rubber-1.2.1 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
axtro-rubber-1.2.1 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
axtro-rubber-1.2.1 generators/vulcanize/templates/nginx_frontend/config/rubber/role/web_tools/nginx-tools.conf
axtro-rubber-1.2.0 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
axtro-rubber-1.0.2.8 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
axtro-rubber-1.0.2.7 generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf