<commit_before>server {
    listen   80; ## listen for ipv4; this line is default and implied
    #listen   [::]:80 default ipv6only=on; ## listen for ipv6

    # Make site accessible from http://localhost/
    server_name registration.microservice.io;

    location / {
        rewrite /shop/(.*)  /shop/$1            break;
        rewrite /           /shop/registration  break;
        rewrite /(.*)       /shop/$1            break;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_pass http://app-server-node-2:8080;
    }
}<commit_msg>fix redirect<commit_after>server {
    listen   80; ## listen for ipv4; this line is default and implied
    #listen   [::]:80 default ipv6only=on; ## listen for ipv6

    # Make site accessible from http://localhost/
    server_name registration.microservice.io;

    location / {
        rewrite /shop/(.*)  /shop/$1            break;
        rewrite /           /shop/registration  permanent;
        rewrite /(.*)       /shop/$1            break;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_pass http://app-server-node-2:8080;
    }
}
{'fraction_non_alphanumeric': 0.10700828937452901, 'fraction_numerical': 0.02110022607385079, 'mean_word_length': 2.1173708920187795, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7326400', 'n_tokens_mistral': 426, 'n_tokens_neox': 402, 'n_words': 97}