Redirection HTTP to HTTPS

Hi guys,

I try for a few days to configure my GitLab server to redirect all HTTP to HTTPS automatically.

My configuration is: external_url 'https://192.168.5.140:9091'

When I try to activate the option nginx['redirect_http_to_https'] = true

But when I regenerate the configuration, the HTTPS doesn't work anymore and HTTP does not work and not redirect anything.

I have an Apache server that is running on port 80.

When I consult the log, it seems that the NGINX server always listen on port 80.

How can I configure my GitLab server to force by switching automatically from HTTP to HTTPS protocol when I type http://192.168.5.140:9091? Is it possible?

Many thanks in advance.

Assignee Loading
Time tracking Loading