<commit_before>#user ubuntu;

# http {

    # worker_processes 4;
    # pid /var/run/nginx.pid;

    # events {
    #     worker_connections  1024;
    # }

    upstream app_yourdomain {
        server 127.0.0.1:3000;
    }


    # ##
    # # Basic Settings
    # ##

    # sendfile on;
    # tcp_nopush on;
    # tcp_nodelay on;
    # keepalive_timeout 300;
    # types_hash_max_size 2048;
    # # server_tokens off;

    # # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    # ##
    # # Logging Settings
    # ##

    # access_log /var/log/nginx/access.log;
    # error_log /var/log/nginx/error.log;

    # ##
    # # Gzip Settings
    # ##

    # gzip on;
    # gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # nginx-naxsi config
    ##
    # Uncomment it if you installed nginx-naxsi
    ##

    # include /etc/nginx/naxsi_core.rules;

    server {

        listen 0.0.0.0:80;

        # redirect to remove www
        # server_name "~^www\.(.*)$" ;
        # return 301 $scheme://$1$request_uri ;

        server_name "";

        location / {
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;

            proxy_pass http://app_yourdomain/;
            proxy_redirect off;

            # websockets
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }

        # root {{ app_public }};
    }
# }
<commit_msg>clean up nginx template<commit_after>

upstream app_yourdomain {
    server 127.0.0.1:3000;
}

server {

    listen 0.0.0.0:80;

    # redirect to remove www
    # server_name "~^www\.(.*)$" ;
    # return 301 $scheme://$1$request_uri ;

    server_name "";

    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        proxy_pass http://app_yourdomain/;
        proxy_redirect off;

        # websockets
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    # root {{ app_public }};
}


{'fraction_non_alphanumeric': 0.10653846153846154, 'fraction_numerical': 0.025, 'mean_word_length': 2.0890736342042757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 3}, 'pii_count': 4, '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': '2116396', 'n_tokens_mistral': 964, 'n_tokens_neox': 878, 'n_words': 164}