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-2.0.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre12 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre11 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre10 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre9 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre8 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre7 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre6 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre5 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre4 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre3 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre2 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf
rubber-2.0.0.pre1 templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf