<commit_before><% if ENV.has_key? "DOCUMENT_ROOT" and ENV['DOCUMENT_ROOT'].to_s != "" %>
root /app/<%= ENV['DOCUMENT_ROOT'] %>;
<% else %>
root /app;
<% end %>

# Attempt the uri, uri+/, then fall back to yii's index.php with args included
location / {
    try_files $uri $uri/ /<%= ENV['INDEX_DOCUMENT'] %>?$args;
}

# Prevent access to yii protected directories
location ~ ^/(protected|framework|themes/\w+/views) {
    deny  all;
}

location ~ \.php {
    include fastcgi_params;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS $proxied_https;
    fastcgi_pass php;
}
<commit_msg>Removed fastcgi timeout directives from .php location block so that these are inherited from general nginx configuration<commit_after><% if ENV.has_key? "DOCUMENT_ROOT" and ENV['DOCUMENT_ROOT'].to_s != "" %>
root /app/<%= ENV['DOCUMENT_ROOT'] %>;
<% else %>
root /app;
<% end %>

# Attempt the uri, uri+/, then fall back to yii's index.php with args included
location / {
    try_files $uri $uri/ /<%= ENV['INDEX_DOCUMENT'] %>?$args;
}

# Prevent access to yii protected directories
location ~ ^/(protected|framework|themes/\w+/views) {
    deny  all;
}

location ~ \.php {
    include fastcgi_params;
    fastcgi_buffers 256 4k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS $proxied_https;
    fastcgi_pass php;
}

{'fraction_non_alphanumeric': 0.13149022252191503, 'fraction_numerical': 0.007417397167902899, 'mean_word_length': 4.3, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7022240', 'n_tokens_mistral': 579, 'n_tokens_neox': 510, 'n_words': 134}