Elasticsearch Settings assume HTTP, need HTTPS too

With Elasticsearch set at 443 I am running “sudo gitlab-rake gitlab:elastic:create_empty_index” and getting a 400 errror.

I wanted to see what the next command would throw so I ran “sudo gitlab-rake gitlab:elastic:index_repositories” and that gave me the more accurate error:

`(Elasticsearch::Transport::Transport::Errors::BadRequest)

400 The plain HTTP request was sent to HTTPS port`

then I looked at Gitlab’s code:

self.__elasticsearch__.client = Elasticsearch::Client.new(
host: Gitlab.config.elasticsearch.host,
port: Gitlab.config.elasticsearch.port
)

It looks like there is nothing for https.

We need HTTPS for our set up.

Assignee Loading
Time tracking Loading