Problems with liveness probe after upgrade from 16.1.2 -> 16.2.0

Summary

Gitlab Omnibus 16.2.0 changed the configuration for the /var/opt/gitlab/nginx/conf/gitlab-health.conf. It added the option proxy_http_version 1.1; - which leads to the a 400 Bad Request: missing required Host header error when executing a health-check via http (non TLS!). The problem seems to be that in /var/opt/gitlab/nginx/conf/gitlab-http.conf these lines are just added to the https-configuration:

  if ($http_host = "") {
    set $http_host_with_default "*******";
  }

  if ($http_host != "") {
    set $http_host_with_default $http_host;
  }

which leads to $http_host_with_default being unset.

Steps to reproduce

Install the 16.2.0 gitlab omibus and do a http-liveness-check. (Or any other health check)

What is the current bug behavior?

A 400 Bad Request: missing required Host header error.

What is the expected correct behavior?

The actual health response.

Relevant logs

Details of package version

Environment details

Edited by Johannes Wegener