<commit_before>user                              www-data;
worker_processes                  1;
pid                               /var/run/nginx.pid;

events {
  worker_connections              1024;
  # multi_accept                  on;
}

http {
  sendfile                        on;
  tcp_nopush                      on;
  tcp_nodelay                     on;
  keepalive_timeout               75s;
  types_hash_max_size             2048;
  client_max_body_size            25m;
  client_body_buffer_size         128k;

  server_tokens                   off;
  # server_names_hash_bucket_size 64;
  # server_name_in_redirect       off;

  include                         <%= config_dir %>/mime.types;
  default_type                    application/octet-stream;

  access_log                      <%= log_dir %>/access.log;
  error_log                       <%= log_dir %>/error.log;

  gzip                            on;
  gzip_disable                    "msie6";

  gzip_vary                       on;
  gzip_http_version               1.1;
  gzip_proxied                    any;
  gzip_min_length                 1100;
  gzip_comp_level                 3;
  gzip_buffers                    16 8k;
  gzip_types                      text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

  #
  # http://www.modrails.com/documentation/Users%20guide%20Nginx.html
  #

  passenger_root                 <%= scope.lookupvar('passenger::params::root') %>;
  passenger_ruby                 <%= scope.lookupvar('passenger::params::ruby') %>;
  passenger_max_pool_size        <%= scope.lookupvar('passenger::params::max_pool_size') %>;
  passenger_pool_idle_time       <%= scope.lookupvar('passenger::params::pool_idle_time') %>;
  passenger_friendly_error_pages off;

  # virtual hosts
  include                        <%= sites_dir %>/*.conf;
}<commit_msg>Add X-Forwarded-For to nginx access log<commit_after>user                              www-data;
worker_processes                  1;
pid                               /var/run/nginx.pid;

events {
  worker_connections              1024;
  # multi_accept                  on;
}

http {
  sendfile                        on;
  tcp_nopush                      on;
  tcp_nodelay                     on;
  keepalive_timeout               75s;
  types_hash_max_size             2048;
  client_max_body_size            25m;
  client_body_buffer_size         128k;

  server_tokens                   off;
  # server_names_hash_bucket_size 64;
  # server_name_in_redirect       off;

  include                         <%= config_dir %>/mime.types;
  default_type                    application/octet-stream;

  log_format                      custom '$remote_addr/$http_x_forwarded_for - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';

  access_log                      <%= log_dir %>/access.log custom;
  error_log                       <%= log_dir %>/error.log;

  gzip                            on;
  gzip_disable                    "msie6";

  gzip_vary                       on;
  gzip_http_version               1.1;
  gzip_proxied                    any;
  gzip_min_length                 1100;
  gzip_comp_level                 3;
  gzip_buffers                    16 8k;
  gzip_types                      text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

  #
  # http://www.modrails.com/documentation/Users%20guide%20Nginx.html
  #

  passenger_root                 <%= scope.lookupvar('passenger::params::root') %>;
  passenger_ruby                 <%= scope.lookupvar('passenger::params::ruby') %>;
  passenger_max_pool_size        <%= scope.lookupvar('passenger::params::max_pool_size') %>;
  passenger_pool_idle_time       <%= scope.lookupvar('passenger::params::pool_idle_time') %>;
  passenger_friendly_error_pages off;

  # virtual hosts
  include                        <%= sites_dir %>/*.conf;
}
{'fraction_non_alphanumeric': 0.08631319358816276, 'fraction_numerical': 0.01627620221948212, 'mean_word_length': 1.4975369458128078, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '5439548', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1131, 'n_words': 186}