I'm using Phusion Passenger with Rails (standalone) running on Heroku. The config file is passed in the Procfile settings.
I'd like to change the historical nginx.conf.erb file. I can easily add new values, but it isn't obvious to me where the variable values are coming from.
Examples from the file:
error_log '<%= @options[:log_file] %>' <% if @options[:log_level] >= LVL_DEBUG %>info<% end %>;
pid '<%= @options[:pid_file] %>';
or
<%= nginx_option :passenger_log_level, :log_level %>
or
<% for app in @apps %>
server {
<% if app[:ssl] %>
<% if app[:ssl_port] %>
listen <%= nginx_listen_address(app) %>;
listen <%= nginx_listen_address_with_ssl_port(app) %> ssl;
<% else %>
listen <%= nginx_listen_address(app) %> ssl;
<% end %>
<% else %>
listen <%= nginx_listen_address(app) %>;
<% end %>
server_name <%= app[:server_names].join(' ') %>;
So where are @options, @app coming from?