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

fix(livestream): Enable custom livestream host (#26106) #27667

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Yiidiir
Copy link

@Yiidiir Yiidiir commented Jan 18, 2025

Problem

This is for self-hosted instances, live event features are broken when not running on localhost because of a hard-coded value.

I can also follow up with an updated docker-compose.hobby.yml but I feel the ability to set live events host is more important.

Closes #26106

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Works for self-hosted / No impact for cloud

How did you test this code?

  1. Build ./Dockerfile
  2. Set LIVESTREAM_HOST value to URI of host serving livestream service
  3. Events features in self-hosted posthog start working again

@benjackwhite benjackwhite self-requested a review January 18, 2025 11:53
@Yiidiir
Copy link
Author

Yiidiir commented Jan 18, 2025

@pauldambra @benjackwhite Can you guys look into this? I made this change small to make it easy to merge. Thanks

frontend/src/lib/utils/apiHost.ts Outdated Show resolved Hide resolved
@Yiidiir Yiidiir requested a review from benjackwhite January 22, 2025 19:53
frontend/src/lib/utils/apiHost.ts Outdated Show resolved Hide resolved
@Yiidiir Yiidiir requested a review from benjackwhite January 24, 2025 08:35
@Yiidiir
Copy link
Author

Yiidiir commented Jan 30, 2025

image

@fuziontech

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.

Live Activity not working on Self-Hosted instance
2 participants