Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support es connection via ssl #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Deepak13245
Copy link

No description provided.

@rajmohanram
Copy link

rajmohanram commented Sep 27, 2021

You need to edit 'elasticsearch.go' with the following the build the docker image.

	cfg := elasticsearch.Config{
		Addresses:             endpoints,
		DiscoverNodesOnStart:  true,
		DiscoverNodesInterval: 300 * time.Second,
		Transport: &http.Transport{
			MaxIdleConnsPerHost:   2,
			ResponseHeaderTimeout: 30 * time.Second,
			TLSClientConfig: &tls.Config{
				InsecureSkipVerify: true,
			  },
		},
	}

@rajmohanram
Copy link

Credits: Thanks to Krish.
Docker image with TLS (HTTPS) support to push logs to Elasticsearch:
https://hub.docker.com/r/rajmor/ambassador-logservice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants