<commit_before><% if @use_ssl %>
server {
    listen      80;
    server_name <%= node[:rstudio][:nginx][:server_name] %>;
    rewrite     ^   https://$server_name$request_uri? permanent;
}

<% end %>
server {
  <% if @use_ssl %>
  listen                    443 ssl;
  ssl                       on;
  ssl_certificate           <%= node[:rstudio][:ssl][:crt_file] %>;
  ssl_certificate_key       <%= node[:rstudio][:ssl][:key_file] %>;
  ssl_protocols             SSLv3 TLSv1;
  ssl_ciphers               ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
  <% else %>
  listen        <%= node[:rstudio][:nginx][:port] %>;
  <% end %>
  server_name   <%= node[:rstudio][:nginx][:server_name] %>;

  location <%= node[:rstudio][:nginx][:location] %> {
  <% if node[:rstudio][:nginx][:location] != '/' %>
    rewrite ^<%= node[:rstudio][:nginx][:location] %>(.*)$ /$1 break;
  <% end %>
    proxy_pass http://<%= node[:rstudio][:server][:www_address] %>:<%= node[:rstudio][:server][:www_port] %>;
    proxy_redirect http://<%= node[:rstudio][:server][:www_address] %>:<%= node[:rstudio][:server][:www_port] %>/ $scheme://$host<%= node[:rstudio][:nginx][:location] %>;
  }
}<commit_msg>use $http_host to preserve nonstandard port<commit_after><% if @use_ssl %>
server {
    listen      80;
    server_name <%= node[:rstudio][:nginx][:server_name] %>;
    rewrite     ^   https://$server_name$request_uri? permanent;
}

<% end %>
server {
  <% if @use_ssl %>
  listen                    443 ssl;
  ssl                       on;
  ssl_certificate           <%= node[:rstudio][:ssl][:crt_file] %>;
  ssl_certificate_key       <%= node[:rstudio][:ssl][:key_file] %>;
  ssl_protocols             SSLv3 TLSv1;
  ssl_ciphers               ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
  <% else %>
  listen        <%= node[:rstudio][:nginx][:port] %>;
  <% end %>
  server_name   <%= node[:rstudio][:nginx][:server_name] %>;

  location <%= node[:rstudio][:nginx][:location] %> {
  <% if node[:rstudio][:nginx][:location] != '/' %>
    rewrite ^<%= node[:rstudio][:nginx][:location] %>(.*)$ /$1 break;
  <% end %>
    proxy_pass http://<%= node[:rstudio][:server][:www_address] %>:<%= node[:rstudio][:server][:www_port] %>;
    proxy_redirect http://<%= node[:rstudio][:server][:www_address] %>:<%= node[:rstudio][:server][:www_port] %>/ $scheme://$http_host<%= node[:rstudio][:nginx][:location] %>;
  }
}
{'fraction_non_alphanumeric': 0.2328767123287671, 'fraction_numerical': 0.007471980074719801, 'mean_word_length': 3.496268656716418, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, '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': '3621717', 'n_tokens_mistral': 994, 'n_tokens_neox': 912, 'n_words': 113}