Explicitly set Host header in health checks

By default haproxy does not set any header when performing healthcheck
requests[1].

Ideally this would be fine, since HTTP/1.0 protocol does not require
`Host` header as mandatory, however different HTTP server
implementations might not strictly adhere to this specification.

This is the case of jetty-9.4.32.v20200930, which is used in gerrit
stable-3.3.

Always set the Host header when performing http healthchecks so that
they succeed regardless the target's implementation of the HTTP
protocol.

[1]https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#option%20httpchk

Bug: Issue 13732
Change-Id: I050ad61bc8c85b95e107af411dcec10850967619
1 file changed
tree: 9728096e5b6a6fe3a2687484ed095905ad78eb0e
  1. common-templates/
  2. dual-master/
  3. geo-location-routing/
  4. gerrit/
  5. ldap/
  6. load-test-fleet/
  7. master-slave/
  8. monitoring/
  9. single-master/
  10. .gitignore
  11. common.env
  12. Configuration.md
  13. Docker.md
  14. LICENSE
  15. Makefile.common
  16. Prerequisites.md
  17. README.md
  18. Secrets.md
README.md

Gerrit AWS Templates

Those are a collection of AWS CloudFormation templates and scripts to deploy Gerrit in AWS.

The aim is to provide some guidelines and example on how to deploy different Gerrit setups in the Cloud using AWS as provider.

Outline

Overview

The goal of Gerrit AWS Templates is to provide fully-functional Gerrit installations to helps users deploying Gerrit on AWS by providing out-of-the-box templates.

With Gerrit AWS Templates, developers and administrator can create a production-ready installation on the cloud in minutes and in a repeatable way, allowing them to focus on fine tuning of the Gerrit configuration to suit the user needs.

The provided CloudFormation templates automate the entire creation and deployment of the infrastructure and the application.

Pre-requisites

To manage your AWS services via command line you will need to install AWS CLI and set it up to point to your account.

To build gerrit and related-components' images Docker

Templates

External services

This is a list of external services that you might need to setup your stack and some suggestions on how to easily create them.

SMTP Server

If you need to setup a SMTP service Amazon Simple Email Service can be used. Details how setup Amazon SES can be found here.

To correctly setup email notifications Gerrit requires ssl protocol on default port 465 to be enabled on SMTP Server. It is possible to setup Gerrit to talk to standard SMTP port 25 but by default all EC2 instances are blocking it. To enable port 25 please follow this link.

LDAP Server

If you need a testing LDAP server you can find details on how to easily create one in the LDAP folder.