<commit_before># vim: ft=nginx tabstop=4 softtabstop=4 shiftwidth=4
# Autogenerated by Chef. DO NOT modify manually

server {
    listen <%= @listenaddr %>;
    keepalive_timeout 70;
    client_max_body_size 60M;

    ## SSL settings
    #listen 443;
    #ssl on;
    #ssl_certificate  /path/to/cert;
    #ssl_certificate_key /path/to/key;


    location /static {
        # Show directory index.
        autoindex  on;

        # From: http://wiki.nginx.org/HttpCoreModule#root
        # note: Keep in mind that the root will still append the directory
        # to the request so that a request for "/i/top.gif" will not look
        # in "/spool/w3/top.gif" like might happen in an Apache-like alias
        # configuration where the location match itself is dropped. Use the
        # alias directive to achieve the Apache-like functionality.
        root <%= @statichome %>;

        # Turn of access log for common static files for improved performance
        location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) {
            access_log   off;
            expires      30d; 
        }
    }

    location / {
        proxy_pass       http://127.0.0.1:<%= @gunicorn_port %>;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        ## SSL options
        #proxy_set_header X-FORWARDED-PROTOCOL ssl;
        #proxy_set_header X-FORWARDED-SSL on;
        #proxy_headers_hash_max_size 1024;
        #proxy_headers_hash_bucket_size 256;
        #proxy_set_header X-Forwarded-Proto https;
    }
}<commit_msg>chef...django_nginx: Forward the X-DEVILRY_USE_EXTJS header.<commit_after># vim: ft=nginx tabstop=4 softtabstop=4 shiftwidth=4
# Autogenerated by Chef. DO NOT modify manually

server {
    listen <%= @listenaddr %>;
    keepalive_timeout 70;
    client_max_body_size 60M;

    ## SSL settings
    #listen 443;
    #ssl on;
    #ssl_certificate  /path/to/cert;
    #ssl_certificate_key /path/to/key;


    location /static {
        # Show directory index.
        autoindex  on;

        # From: http://wiki.nginx.org/HttpCoreModule#root
        # note: Keep in mind that the root will still append the directory
        # to the request so that a request for "/i/top.gif" will not look
        # in "/spool/w3/top.gif" like might happen in an Apache-like alias
        # configuration where the location match itself is dropped. Use the
        # alias directive to achieve the Apache-like functionality.
        root <%= @statichome %>;

        # Turn of access log for common static files for improved performance
        location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) {
            access_log   off;
            expires      30d; 
        }
    }

    location / {
        proxy_pass       http://127.0.0.1:<%= @gunicorn_port %>;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        # Note: We should not need this, since nginx should forward all headers by default
        proxy_set_header X-DEVILRY_USE_EXTJS true;

        ## SSL options
        #proxy_set_header X-FORWARDED-PROTOCOL ssl;
        #proxy_set_header X-FORWARDED-SSL on;
        #proxy_headers_hash_max_size 1024;
        #proxy_headers_hash_bucket_size 256;
        #proxy_set_header X-Forwarded-Proto https;
    }
}
{'fraction_non_alphanumeric': 0.09575656058068119, 'fraction_numerical': 0.01507537688442211, 'mean_word_length': 2.583, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7249210', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1138, 'n_words': 293}