<commit_before>worker_processes 2;
daemon on;
error_log <%= @options[:log_file] %>;
pid <%= @options[:pid_file] %>;
<% if @options[:user] %>user <%= @options[:user] %> <%= default_group_for(@options[:user]) %>;<% end %>

events {
    worker_connections 1024;
}

http {
    include <%= @nginx_dir %>/conf/mime.types;
    client_body_temp_path <%= @temp_dir %>/client;
    proxy_temp_path <%= @temp_dir %>/proxy;
    default_type application/octet-stream;
    client_max_body_size 50m;
    access_log off;
    gzip on;
    keepalive_timeout 60;
    passenger_root <%= passenger_root %>;
    passenger_user_switching off;
    <% if @options[:user] %>passenger_default_user <%= @options[:user] %>;<% end %>
    
    <% if @apps.size > 1 %>
    # Default server entry.
    server {
        listen <%= nginx_listen_address %>;
        root <%= LIBDIR %>/phusion_passenger/templates/multicorn_default_root;
    }
    <% end %>
    
    <% for app in @apps %>
    server {
        listen <%= @options[:address] %>:<%= @options[:port] %>;
        server_name <%= app[:server_names].join(' ') %>;
        root <%= app[:root] %>/public;
        passenger_enabled on;
	rails_env <%= @options[:env] %>;
    }
    <% end %>
}<commit_msg>Set passenger_ruby in Multicorn Nginx config file.<commit_after>worker_processes 2;
daemon on;
error_log <%= @options[:log_file] %>;
pid <%= @options[:pid_file] %>;
<% if @options[:user] %>user <%= @options[:user] %> <%= default_group_for(@options[:user]) %>;<% end %>

events {
    worker_connections 1024;
}

http {
    include <%= @nginx_dir %>/conf/mime.types;
    client_body_temp_path <%= @temp_dir %>/client;
    proxy_temp_path <%= @temp_dir %>/proxy;
    passenger_ruby <%= PlatformInfo::RUBY %>;
    passenger_root <%= passenger_root %>;
    passenger_user_switching off;
    <% if @options[:user] %>passenger_default_user <%= @options[:user] %>;<% end %>
    
    default_type application/octet-stream;
    client_max_body_size 50m;
    access_log off;
    gzip on;
    keepalive_timeout 60;
    
    <% if @apps.size > 1 %>
    # Default server entry.
    server {
        listen <%= nginx_listen_address %>;
        root <%= LIBDIR %>/phusion_passenger/templates/multicorn_default_root;
    }
    <% end %>
    
    <% for app in @apps %>
    server {
        listen <%= @options[:address] %>:<%= @options[:port] %>;
        server_name <%= app[:server_names].join(' ') %>;
        root <%= app[:root] %>/public;
        passenger_enabled on;
	rails_env <%= @options[:env] %>;
    }
    <% end %>
}
{'fraction_non_alphanumeric': 0.17797947908445147, 'fraction_numerical': 0.007892659826361484, 'mean_word_length': 3.3039049235993208, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6434656', 'n_tokens_mistral': 963, 'n_tokens_neox': 833, 'n_words': 162}