<commit_before>server {
  server_name deploy.*;
  listen 80;
  return 301 https://$host/;
}

server {
  listen 443 ssl;
  server_name deploy.*;

  ssl_certificate     /etc/nginx/ssl/jenkins.crt;
  ssl_certificate_key /etc/nginx/ssl/jenkins.key;

  location / {
    proxy_pass http://localhost:8080;

    location /api/json {
      proxy_pass http://localhost:8080;

      add_header "Access-Control-Allow-Origin" "*";
      add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
      add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, accept";
      add_header "Access-Control-Allow-Credentials" "true";
      add_header "Strict-Transport-Security" "max-age=31536000";
    }

  }<commit_msg>Move HSTS header for deploy Jenkins<commit_after>server {
  server_name deploy.*;
  listen 80;
  return 301 https://$host/;
}

server {
  listen 443 ssl;
  server_name deploy.*;

  ssl_certificate     /etc/nginx/ssl/jenkins.crt;
  ssl_certificate_key /etc/nginx/ssl/jenkins.key;

  location / {
    proxy_pass http://localhost:8080;

    add_header "Strict-Transport-Security" "max-age=31536000";

    location /api/json {
      proxy_pass http://localhost:8080;

      add_header "Access-Control-Allow-Origin" "*";
      add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
      add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, accept";
      add_header "Access-Control-Allow-Credentials" "true";
    }

  }
{'fraction_non_alphanumeric': 0.1307011572498298, 'fraction_numerical': 0.03267528931245745, 'mean_word_length': 3.388059701492537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6198814', 'n_tokens_mistral': 538, 'n_tokens_neox': 477, 'n_words': 93}