<commit_before>upstream jenkins {
  server 127.0.0.1:<%= scope.lookupvar "jenkins::config::port" %> fail_timeout=0;
}

server {
  access_log <%= scope.lookupvar "jenkins::config::accesslogfile" %>;
  error_log <%= scope.lookupvar "jenkins::config::errorlogfile" %>;
  listen 80;
  server_name jenkins.dev;

  client_max_body_size 50M;

  error_page 500 502 503 504 /50x.html;

  if ($host ~* "www") {
    rewrite ^(.*)$ http://jenkins.dev$1 permanent;
    break;
  }

  location / {
    proxy_buffering          off;
    proxy_max_temp_file_size 0;
    proxy_redirect           off;

    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_pass   http://jenkins;
  }
}

<% if scope.lookupvar "jenkins::config::public_port" %>
server {
  access_log <%= scope.lookupvar "jenkins::config::accesslogfile" %>;
  error_log <%= scope.lookupvar "jenkins::config::errorlogfile" %>;
  listen <%= hostname %>:18080;
  server_name <%= hostname %>;

  location / {
    proxy_buffering          off;
    proxy_max_temp_file_size 0;
    proxy_redirect           off;

    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_pass http://jenkins/;
  }
}
<% end %><commit_msg>Removed hardcoded port.<commit_after>upstream jenkins {
  server 127.0.0.1:<%= scope.lookupvar "jenkins::config::port" %> fail_timeout=0;
}

server {
  access_log <%= scope.lookupvar "jenkins::config::accesslogfile" %>;
  error_log <%= scope.lookupvar "jenkins::config::errorlogfile" %>;
  listen 80;
  server_name jenkins.dev;

  client_max_body_size 50M;

  error_page 500 502 503 504 /50x.html;

  if ($host ~* "www") {
    rewrite ^(.*)$ http://jenkins.dev$1 permanent;
    break;
  }

  location / {
    proxy_buffering          off;
    proxy_max_temp_file_size 0;
    proxy_redirect           off;

    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_pass   http://jenkins;
  }
}

<% if scope.lookupvar "jenkins::config::public_port" %>
server {
  access_log <%= scope.lookupvar "jenkins::config::accesslogfile" %>;
  error_log <%= scope.lookupvar "jenkins::config::errorlogfile" %>;
  listen <%= hostname %>:<%= scope.lookupvar "jenkins::config::port" %>;
  server_name <%= hostname %>;

  location / {
    proxy_buffering          off;
    proxy_max_temp_file_size 0;
    proxy_redirect           off;

    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_pass http://jenkins/;
  }
}
<% end %>
{'fraction_non_alphanumeric': 0.1275634341327772, 'fraction_numerical': 0.021202641640597843, 'mean_word_length': 3.1232091690544412, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '2821438', 'n_tokens_mistral': 1090, 'n_tokens_neox': 987, 'n_words': 173}