<commit_before>server {
    # redirect 80 -> 443
    listen 80 default_server;

    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 default_server;
    server_name crash-stats;

    root /data/socorro/webapp-django;

    gzip               on;
    gzip_min_length    256;   # don't bother on tiny files
    gzip_comp_level    6;     # 1 fast/least 9 slow/most
    gzip_proxied       any;   # required if we use Cloudfront
    gzip_vary          on;    # tell public proxies to cache both
    gzip_buffers       16 8k; # because we have large javascript files
    gzip_types
        text/plain
        text/html
        text/css
        application/json
        application/x-javascript
        text/xml
        application/xml
        application/xml+rss
        text/javascript
        application/javascript
        text/x-js;

    # HSTS for 1 day
    # When we know this isn't causing any problems, change this
    # max-age to 31536000
    # See https://bugzilla.mozilla.org/show_bug.cgi?id=1136371
    add_header Strict-Transport-Security "max-age=86400";

    # crash-stats needs to accept debug symbol zips
    client_max_body_size 2g;

    # Browser convention is to seek this in the root but that's
    # not where the file is.
    location = /favicon.ico {
        rewrite (.*) /crashstats/base/static/img$1;
        add_header   Cache-Control public;
        expires      1y;
        access_log   off;
        break;
    }

    # files like /static/browserid.js that don't have a unique URL
    location /static {<commit_msg>text/html from gzip config in webapp nginx<commit_after>server {
    # redirect 80 -> 443
    listen 80 default_server;

    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 default_server;
    server_name crash-stats;

    root /data/socorro/webapp-django;

    gzip               on;
    gzip_min_length    256;   # don't bother on tiny files
    gzip_comp_level    6;     # 1 fast/least 9 slow/most
    gzip_proxied       any;   # required if we use Cloudfront
    gzip_vary          on;    # tell public proxies to cache both
    gzip_buffers       16 8k; # because we have large javascript files
    gzip_types
        text/plain
        text/css
        application/json
        application/x-javascript
        text/xml
        application/xml
        application/xml+rss
        text/javascript
        application/javascript
        text/x-js;

    # HSTS for 1 day
    # When we know this isn't causing any problems, change this
    # max-age to 31536000
    # See https://bugzilla.mozilla.org/show_bug.cgi?id=1136371
    add_header Strict-Transport-Security "max-age=86400";

    # crash-stats needs to accept debug symbol zips
    client_max_body_size 2g;

    # Browser convention is to seek this in the root but that's
    # not where the file is.
    location = /favicon.ico {
        rewrite (.*) /crashstats/base/static/img$1;
        add_header   Cache-Control public;
        expires      1y;
        access_log   off;
        break;
    }

    # files like /static/browserid.js that don't have a unique URL
    location /static {
{'fraction_non_alphanumeric': 0.07122596911440278, 'fraction_numerical': 0.02899464229435865, 'mean_word_length': 2.0228571428571427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '2406598', 'n_tokens_mistral': 1058, 'n_tokens_neox': 940, 'n_words': 285}