Can gitlab support h2c?

I have gitlab configured without TLS, because TLS is handled by haproxy sitting out front. The URL is https.

For efficiency reasons, I would like to have haproxy connect to gitlab with http2, which requires that gitlab support h2c – http2 cleartext. Currently it is connecting with http 1.1.

I’m reasonably certain that nginx does support this … is there any way to specify it in gitlab.rb? I’m running version 16 of the gitlab-ce omnibus package.

I don’t think there is a direct parameter that would allow you to set something like lister 80 http2 in the built-in nginx config. Maybe you could use custom server block using NGINX settings | GitLab and set what you need there.

1 Like