Skip to content

Add ability to disable SSL verification#11

Merged
yakkomajuri merged 1 commit intoPostHog:masterfrom
taobojlen:allow-disabling-ssl-verification
Nov 22, 2021
Merged

Add ability to disable SSL verification#11
yakkomajuri merged 1 commit intoPostHog:masterfrom
taobojlen:allow-disabling-ssl-verification

Conversation

@taobojlen
Copy link
Copy Markdown
Contributor

Use case: we have a staging environment with its own PostHog instance. It's not exposed to the internet, and uses a self-signed SSL certificate. This staging instance is useful for development. We currently need to manually change transport.rb to disable SSL verification, otherwise posthog-ruby's requests fail.

This PR makes it easier to use PostHog behind a self-signed SSL certificate by passing in an option to PostHog::Client.new. This will also allow us to send events from our staging Ruby app.

This is maybe a pretty niche requirement, so understandable if you don't want to merge it, but it'd be useful for us! I've tested these modifications with our Ruby app and it works.

@yakkomajuri yakkomajuri merged commit 0a2bf4f into PostHog:master Nov 22, 2021
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.

2 participants