<commit_before>[nginx]
recipe = zc.recipe.cmmi
url = http://nginx.org/download/nginx-${config:nginx_version}.tar.gz
# extra_options =
#     --without-http_rewrite_module
#     --with-http_perl_module

[nginx_geonode]
recipe = gocept.nginx
hostname = ${config:geonode_public_domain}
port = ${config:nginx_port}
configuration =
    daemon off;
    events {
        worker_connections 1024;
    }
    http {
        server {
            listen ${config:nginx_port};
            access_log ${config:nginx_logs}access_${config:geonode_public_domain}_nginx.log;
            error_log ${config:nginx_logs}error_${config:geonode_public_domain}_nginx.log;
            # serve staticfiles
            location /static/ {
                include ${nginx:location}/conf/mime.types;
                alias   ${config:geonode_static};
                expires 7d;
            }
            # serve mediafiles, default 'uploaded' in GeoNode
            location /uploaded/ {
                alias   ${config:geonode_uploaded};
                expires 7d;
            }
            # geoserver proxy
            location /geoserver/ {
                proxy_pass http://${config:tomcat_hostname}:${config:tomcat_connector_port}/geoserver/;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<commit_msg>Some tweak to nginx config<commit_after>[nginx]
recipe = zc.recipe.cmmi
url = http://nginx.org/download/nginx-${config:nginx_version}.tar.gz
extra_options =
    --with-debug
# extra_options =
#     --without-http_rewrite_module
#     --with-http_perl_module

[nginx_geonode]
recipe = gocept.nginx
hostname = ${config:geonode_public_domain}
port = ${config:nginx_port}
configuration =
    daemon off;
    events {
        worker_connections 1024;
    }
    http {
        server {
            listen ${config:nginx_port};
            access_log ${config:nginx_logs}access_${config:geonode_public_domain}_nginx.log;
            error_log ${config:nginx_logs}error_${config:geonode_public_domain}_nginx.log;
            client_max_body_size 5m;
            location = /robots.txt {
                rewrite /robots.txt /static/robots.txt;
            }
            # serve staticfiles
            location /static/ {
                include ${nginx:location}/conf/mime.types;
                alias   ${config:geonode_static};
                expires 7d;
            }
            # serve mediafiles, default 'uploaded' in GeoNode
            location /uploaded/ {
                alias   ${config:geonode_uploaded};
                expires 7d;
            }
            # geoserver proxy
            location /geoserver/ {
                proxy_pass http://${config:tomcat_hostname}:${config:tomcat_connector_port}/geoserver/;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
{'fraction_non_alphanumeric': 0.0999315537303217, 'fraction_numerical': 0.004449007529089665, 'mean_word_length': 2.1295503211991433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '552705', 'n_tokens_mistral': 915, 'n_tokens_neox': 875, 'n_words': 138}