<commit_before>upstream api-gateway {
    server <%= @ip %>:8080       weight=5;
}

upstream backendmonitor {
    server <%= @ip %>:22000      weight=5;
}

server {
    listen 443 ssl;
    server_name <%= @hostname %>;
    ssl_certificate /etc/nginx/ssl/<%= @hostname %>.crt;
    ssl_certificate_key /etc/nginx/ssl/<%= @hostname %>.key;

    location /  {
        proxy_pass http://backendauth/api;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    location /events {
        proxy_pass  http://backendmonitor;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	    proxy_set_header Connection '';
	    proxy_http_version 1.1;
	    proxy_read_timeout 3600s;
	    chunked_transfer_encoding off;
	    proxy_buffering off;<commit_msg>Fix nginx conf<commit_after>upstream api-gateway {
    server <%= @ip %>:8080       weight=5;
}

upstream backendmonitor {
    server <%= @ip %>:22000      weight=5;
}

server {
    listen 443 ssl;
    server_name <%= @hostname %>;
    ssl_certificate /etc/nginx/ssl/<%= @hostname %>.crt;
    ssl_certificate_key /etc/nginx/ssl/<%= @hostname %>.key;

    location /  {
        proxy_pass http://api-gateway/api;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    location /events {
        proxy_pass  http://backendmonitor;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	    proxy_set_header Connection '';
	    proxy_http_version 1.1;
	    proxy_read_timeout 3600s;
	    chunked_transfer_encoding off;
	    proxy_buffering off;
{'fraction_non_alphanumeric': 0.11467008327994875, 'fraction_numerical': 0.025624599615631006, 'mean_word_length': 2.964467005076142, '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': '6241101', 'n_tokens_mistral': 587, 'n_tokens_neox': 530, 'n_words': 99}