<commit_before>upstream <%= fetch(:application) %>-puma {
  server unix:<%= remote_path_for(shared_path) %>/tmp/sockets/puma.sock fail_timeout=0;
}

<%- config = fetch(:nginx_vhost, {}) -%>
<%- domain = config[:domain] -%>

server {
  server_name   <%= domain %>;
  listen        4443 ssl;
  listen        127.0.0.1:5000;
  root          <%= remote_path_for(deploy_to) %>/current/public;

  access_log    <%= remote_path_for(shared_path) %>/log/nginx.access.log;
  error_log     <%= remote_path_for(shared_path) %>/log/nginx.error.log;

  ssl on;
  ssl_certificate       <%= remote_path_for(shared_path) %>/config/ssl/server.crt;
  ssl_certificate_key   <%= remote_path_for(shared_path) %>/config/ssl/server.key;

  error_page 502 @maintenance;
  error_page 503 @maintenance;

  location / {
    if (-f <%= remote_path_for(shared_path) %>/tmp/maintenance.txt) {
      return 503;<commit_msg>Use letsencrypt for SSL certs<commit_after>upstream <%= fetch(:application) %>-puma {
  server unix:<%= remote_path_for(shared_path) %>/tmp/sockets/puma.sock fail_timeout=0;
}

<%- config = fetch(:nginx_vhost, {}) -%>
<%- domain = config[:domain] -%>

server {
  server_name   <%= domain %>;
  listen        4443 ssl;
  listen        127.0.0.1:5000;
  root          <%= remote_path_for(deploy_to) %>/current/public;

  access_log    <%= remote_path_for(shared_path) %>/log/nginx.access.log;
  error_log     <%= remote_path_for(shared_path) %>/log/nginx.error.log;

  ssl on;
  ssl_certificate      /etc/letsencrypt/live/<%= domain %>/fullchain.pem;
  ssl_certificate_key  /etc/letsencrypt/live/<%= domain %>/privkey.pem;

  error_page 502 @maintenance;
  error_page 503 @maintenance;

  location / {
    if (-f <%= remote_path_for(shared_path) %>/tmp/maintenance.txt) {
      return 503;
{'fraction_non_alphanumeric': 0.16197975253093364, 'fraction_numerical': 0.02699662542182227, 'mean_word_length': 3.6449086161879896, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3511393', 'n_tokens_mistral': 733, 'n_tokens_neox': 657, 'n_words': 105}