<commit_before>#####################################################
#  This file is autogenerated by Phusion Passenger Standalone
#  from <%= template_filename %>
#  Please edit that file instead.
#####################################################


master_process on;
worker_processes 1;
daemon on;
error_log '<%= @options[:log_file] %>' <% if debugging? %>info<% end %>;
pid '<%= @options[:pid_file] %>';
<commit_msg>When running Passenger Standalone as root, run the worker process either as the --user user (so that Nginx can always access the app directory) or as root (because that's apparently what the user wants). This prevents a problem such as described at https://groups.google.com/d/msg/phusion-passenger/Io9EKsICt_I/f4ZJhakjgiQJ<commit_after>#####################################################
#  This file is autogenerated by Phusion Passenger Standalone
#  from <%= template_filename %>
#  Please edit that file instead.
#####################################################


master_process on;
worker_processes 1;
daemon on;
error_log '<%= @options[:log_file] %>' <% if debugging? %>info<% end %>;
pid '<%= @options[:pid_file] %>';

<% if Process.euid == 0 %>
    <% if @options[:user] %>
        <%# Run workers as the given user. The master process will always run as root and will be able to bind to any port. %>
        user <%= @options[:user] %> <%= default_group_for(@options[:user]) %>;
    <% else %>
        <%# Prevent running Nginx workers as nobody. %>
        user <%= current_user %> <%= default_group_for(current_user) %>;
    <% end %>
<% end %>

{'fraction_non_alphanumeric': 0.2533081285444234, 'fraction_numerical': 0.00315059861373661, 'mean_word_length': 4.947565543071161, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 1, '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': '1776237', 'n_tokens_mistral': 487, 'n_tokens_neox': 425, 'n_words': 145}