Sha256: 279be20c18b0c0dc96a58329576e7d5fda53030b808992acc3407352cba10297

Contents?: true

Size: 913 Bytes

Versions: 75

Compression:

Stored size: 913 Bytes

Contents

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

 server {
    ssl on;
    listen <%= rubber_env.passenger_listen_ssl_port %>;
   
    proxy_set_header X_FORWARDED_PROTO https;


    <% if rubber_env.use_ssl_key %>
    ssl_certificate <%= Rubber.root %>/config/<%= rubber_env.domain %>.crt;
    ssl_certificate_key <%= Rubber.root %>/config/<%= rubber_env.domain %>.key;
    <% else %>
    ssl_certificate  /etc/ssl/certs/ssl-cert-snakeoil.pem;
    ssl_certificate_key  /etc/ssl/private/ssl-cert-snakeoil.key;
    <% end %>  

    include /etc/nginx/rubber/application.conf;
  }

  server {
    listen       <%= rubber_env.passenger_listen_port %>;
    include /etc/nginx/rubber/application.conf;
  }

passenger_pre_start http://<%= rubber_env.domain %>:<%= rubber_env.passenger_listen_port %>/;
passenger_pre_start https://<%= rubber_env.domain %>:<%= rubber_env.passenger_listen_ssl_port %>/;

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-3.2.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-3.2.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-3.1.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-3.0.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-3.0.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.16.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.15.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.15.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.15.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.14.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.13.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.13.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.12.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.12.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.12.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.11.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.10.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.10.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.10.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf