<commit_before>server {
  listen 80 default_server;

  location /__varnish_check__ {
    # This is the varnish upstream defined in the www.gov.uk vhost
    proxy_pass http://varnish;
  }

  <%- if scope.lookupvar('::aws_migration') %>
  # Send the Strict-Transport-Security header
  include /etc/nginx/add-sts.conf;
  # Required for L7 ALB
  location = /_healthcheck {
    return 200;
  }
  <%- end %>
  location / {
    return 444;
  }
}

<% unless scope.lookupvar('::aws_migration') %>
server {
  listen              443 default_server ssl;
  ssl_certificate     /etc/nginx/ssl/www.gov.uk.crt;
  ssl_certificate_key /etc/nginx/ssl/www.gov.uk.key;
  include             /etc/nginx/ssl.conf;

  location /__varnish_check__ {<commit_msg>Add Cache ALB health check path<commit_after>server {
  listen 80 default_server;

  location /__varnish_check__ {
    # This is the varnish upstream defined in the www.gov.uk vhost
    proxy_pass http://varnish;
  }

  <%- if scope.lookupvar('::aws_migration') %>
  # Health checks from ALB reuse Fastly __canary__ health check path
  # and bypass authentication on Integration
  location /_healthcheck_www {
    proxy_pass http://varnish/__canary__;
  }
  location /_healthcheck_www-origin {
    proxy_pass http://varnish/__canary__;
  }
  location /_healthcheck_assets-origin {
    return 200;
  }

  # Send the Strict-Transport-Security header
  include /etc/nginx/add-sts.conf;
  # Required for L7 ALB
  location = /_healthcheck {
    return 200;
  }
  <%- end %>
  location / {
    return 444;
  }
}

<% unless scope.lookupvar('::aws_migration') %>
server {
  listen              443 default_server ssl;
  ssl_certificate     /etc/nginx/ssl/www.gov.uk.crt;
  ssl_certificate_key /etc/nginx/ssl/www.gov.uk.key;
  include             /etc/nginx/ssl.conf;

  location /__varnish_check__ {
{'fraction_non_alphanumeric': 0.10946907498631636, 'fraction_numerical': 0.014778325123152709, 'mean_word_length': 2.9143468950749463, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '926825', 'n_tokens_mistral': 682, 'n_tokens_neox': 622, 'n_words': 138}