<commit_before># Example template for PHP-FPM based projects
#
# The template which nginx uses within a boxen::project can be overridden
# to a specific template such as this one.
#
# You will likely need to change both the root and SCRIPT_FILENAME parameters below
# to match your setup
#
upstream php {
        server unix:<%= scope.lookupvar "boxen::config::socketdir" %>/<%= @name %>;
}
server {
  listen 80;
  server_name quehambre.dev;

  return 301 $scheme://www.quehambre.dev$request_uri;
}

server {
  listen 80;
  server_name quehambre.local;

  return 301 $scheme://www.quehambre.local$request_uri;
}

server {
  listen 80;
  server_name quehambre.cl;
  
  return 301 $scheme://www.quehambre.cl$request_uri;
}

server {
  error_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.error.log notice;
  access_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.access.log main;
  listen 80;
  root <%= @repo_dir %>/src;
  server_name www.quehambre.dev www.quehambre.local www.quehambre.cl;

  client_max_body_size 50M;

  error_page 500 502 503 504 /50x.html;

  index index.php;
  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~ \.php$ {
    include <%= scope.lookupvar "nginx::config::configdir" %>/fastcgi_params;
    fastcgi_pass php;
    fastcgi_param SCRIPT_FILENAME <%= @repo_dir %>/src/index.php;
  }
}<commit_msg>Fix quehambre web nginx template<commit_after># Example template for PHP-FPM based projects
#
# The template which nginx uses within a boxen::project can be overridden
# to a specific template such as this one.
#
# You will likely need to change both the root and SCRIPT_FILENAME parameters below
# to match your setup
#
upstream php {
        server unix:<%= scope.lookupvar "boxen::config::socketdir" %>/<%= @name %>;
}
server {
  listen 80;
  server_name quehambre.dev;

  return 301 $scheme://www.quehambre.dev$request_uri;
}

server {
  listen 80;
  server_name quehambre.local;

  return 301 $scheme://www.quehambre.local$request_uri;
}

server {
  listen 80;
  server_name quehambre.cl;
  
  return 301 $scheme://www.quehambre.cl$request_uri;
}

server {
  error_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.error.log notice;
  access_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.access.log main;
  listen 80;
  root <%= @repo_dir %>/src;
  server_name www.quehambre.dev www.quehambre.local www.quehambre.cl canisio.quehambre.cl;

  client_max_body_size 50M;

  error_page 500 502 503 504 /50x.html;

  index index.php;
  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~ (?<!printer|callback)\.php$ {
    include <%= scope.lookupvar "nginx::config::configdir" %>/fastcgi_params;
    fastcgi_pass php;
    fastcgi_param SCRIPT_FILENAME <%= @repo_dir %>/src/index.php;
  }
}
{'fraction_non_alphanumeric': 0.13464927740571025, 'fraction_numerical': 0.02326401127952062, 'mean_word_length': 3.9964788732394365, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, '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': '2135920', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1008, 'n_words': 251}