<commit_before># This file will be compiled into /etc/nginx/nginx.conf

user  nginx;
worker_processes  <%= ENV['WORKER_PROCESSES'] || 1 %>;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

events {
    worker_connections  <%= ENV['WORKER_CONNECTIONS'] || 1024 %>;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

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

    <% if ENV['WEBSOCKET'] && ENV['WEBSOCKET'].downcase == 'true' %>
    map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      close;
    }
    <% end %>

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;

    keepalive_timeout  <%= ENV['KEEPALIVE_TIMEOUT'] || 65 %>;

    gzip  <%= ENV['GZIP'] || 'on' %>;
    server_tokens <%= ENV['SERVER_TOKENS'] || 'off' %>;

    server_names_hash_max_size <%= ENV['SERVER_NAMES_HASH_MAX_SIZE'] || 512 %>;
    <% if ENV['SERVER_NAMES_HASH_BUCKET_SIZE'] %>
    server_names_hash_bucket_size <%= ENV['SERVER_NAMES_HASH_BUCKET_SIZE'] %>;
    <% end %>
    <% if ENV['CLIENT_MAX_BODY_SIZE'] %>
    client_max_body_size <%= ENV['CLIENT_MAX_BODY_SIZE'] %>;
    <% end %>

    include /etc/nginx/conf.d/*.conf;
}<commit_msg>Adds environment variables for proxy buffers<commit_after># This file will be compiled into /etc/nginx/nginx.conf

user  nginx;
worker_processes  <%= ENV['WORKER_PROCESSES'] || 1 %>;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

events {
    worker_connections  <%= ENV['WORKER_CONNECTIONS'] || 1024 %>;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

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

    <% if ENV['WEBSOCKET'] && ENV['WEBSOCKET'].downcase == 'true' %>
    map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      close;
    }
    <% end %>

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;

    keepalive_timeout  <%= ENV['KEEPALIVE_TIMEOUT'] || 65 %>;

    gzip  <%= ENV['GZIP'] || 'on' %>;
    server_tokens <%= ENV['SERVER_TOKENS'] || 'off' %>;

    server_names_hash_max_size <%= ENV['SERVER_NAMES_HASH_MAX_SIZE'] || 512 %>;
    <% if ENV['SERVER_NAMES_HASH_BUCKET_SIZE'] %>
    server_names_hash_bucket_size <%= ENV['SERVER_NAMES_HASH_BUCKET_SIZE'] %>;
    <% end %>
    <% if ENV['CLIENT_MAX_BODY_SIZE'] %>
    client_max_body_size <%= ENV['CLIENT_MAX_BODY_SIZE'] %>;
    <% end %>
    <% if ENV['PROXY_BUFFERS'] %>
    proxy_buffers <%= ENV['PROXY_BUFFERS'] %>;
    <% end %>
    <% if ENV['PROXY_BUFFER_SIZE'] %>
    proxy_buffer_size <%= ENV['PROXY_BUFFER_SIZE'] %>;
    <% end %>

    include /etc/nginx/conf.d/*.conf;
}
{'fraction_non_alphanumeric': 0.16233979625369702, 'fraction_numerical': 0.006572461386789352, 'mean_word_length': 3.0804289544235925, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '4813778', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1120, 'n_words': 171}