<commit_before>log_format cme '$remote_addr - $remote_user [$time_local]  '
               '"$request" $status $body_bytes_sent '
               '"$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$ssl_cipher" '
               '"$msec-$remote_addr-$remote_port"';

server {
  listen   80;
  listen   443 ssl;
  ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers         HIGH:!RC4:!aNULL:!MD5;
  server_name         <%= node['nginx']['server_name'] %>;
  ssl_certificate     <%= "/etc/ssl/certs/" + node['nginx']['server_name'] + ".pem" %>;
  ssl_certificate_key <%= "/etc/ssl/private/" + node['nginx']['server_name'] + ".key" %>;

  access_log  <%= node['nginx']['log_dir'] %>/cme.access.log cme;

  location /httpproxy/ {
    proxy_pass  http://localhost:10080;
    proxy_redirect off;
    proxy_buffering off;
    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_set_header        X-Request-Id    $msec-$remote_addr-$remote_port;
  }

  location /secure/ {
    proxy_pass  http://localhost:10080;
    proxy_redirect off;
    proxy_buffering off;
    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_set_header        X-Request-Id    $msec-$remote_addr-$remote_port;
  }

  location /webapp/ {
    proxy_pass  http://localhost:10180;
    proxy_redirect off;
    proxy_buffering off;
    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_set_header        X-Request-Id    $msec-$remote_addr-$remote_port;
  }

#  location / {
#    root   <%= node['nginx']['default_root'] %>;
#    index  index.html index.htm;
#  }
}
<commit_msg>vertx-nginx: adjusted nginx ip address headers for http proxy<commit_after>log_format cme '$remote_addr - $remote_user [$time_local]  '
               '"$request" $status $body_bytes_sent '
               '"$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$ssl_cipher" '
               '"$msec-$remote_addr-$remote_port"';

server {
  listen   80;
  listen   443 ssl;
  ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers         HIGH:!RC4:!aNULL:!MD5;
  server_name         <%= node['nginx']['server_name'] %>;
  ssl_certificate     <%= "/etc/ssl/certs/" + node['nginx']['server_name'] + ".pem" %>;
  ssl_certificate_key <%= "/etc/ssl/private/" + node['nginx']['server_name'] + ".key" %>;

  access_log  <%= node['nginx']['log_dir'] %>/cme.access.log cme;

  location /httpproxy/ {
    proxy_pass  http://localhost:10080;
    proxy_redirect off;
    proxy_buffering off;
    proxy_set_header        Host            $host;
    proxy_set_header        X-Real-IP       $remote_addr;
    proxy_set_header        X-Forwarded-For $http_x_forwarded_for;
    proxy_set_header        X-Request-Id    $msec-$remote_addr-$remote_port;
  }

  location /secure/ {
    proxy_pass  http://localhost:10080;
    proxy_redirect off;
    proxy_buffering off;
    proxy_set_header        Host            $host;
    proxy_set_header        X-Real-IP       $remote_addr;
    proxy_set_header        X-Forwarded-For $http_x_forwarded_for;
    proxy_set_header        X-Request-Id    $msec-$remote_addr-$remote_port;
  }

  location /webapp/ {
    proxy_pass  http://localhost:10180;
    proxy_redirect off;
    proxy_buffering off;
    proxy_set_header        Host            $host;
    proxy_set_header        X-Real-IP       $remote_addr;
    proxy_set_header        X-Forwarded-For $http_x_forwarded_for;
    proxy_set_header        X-Request-Id    $msec-$remote_addr-$remote_port;
  }

#  location / {
#    root   <%= node['nginx']['default_root'] %>;
#    index  index.html index.htm;
#  }
}

{'fraction_non_alphanumeric': 0.12617177603242968, 'fraction_numerical': 0.013681276919179123, 'mean_word_length': 2.5760869565217392, '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': '1886065', 'n_tokens_mistral': 1436, 'n_tokens_neox': 1370, 'n_words': 218}