From e650a759a023b88a27813ca994153d29d827e4bc Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 19 Jun 2024 11:15:41 +0200 Subject: [PATCH] fix: add ca-certs to livestream image (#23078) --- frontend/src/lib/utils/apiHost.ts | 2 ++ livestream/Dockerfile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/frontend/src/lib/utils/apiHost.ts b/frontend/src/lib/utils/apiHost.ts index 75d18c2bf06..52406be14dc 100644 --- a/frontend/src/lib/utils/apiHost.ts +++ b/frontend/src/lib/utils/apiHost.ts @@ -14,6 +14,8 @@ export function liveEventsHostOrigin(): string | null { return 'https://live.us.posthog.com' } else if (appOrigin === 'https://eu.posthog.com') { return 'https://live.eu.posthog.com' + } else if (appOrigin === 'https://app.dev.posthog.dev') { + return 'https://live.dev.posthog.dev' } return 'http://localhost:8666' } diff --git a/livestream/Dockerfile b/livestream/Dockerfile index eb92001a84e..c0c436ea0c3 100644 --- a/livestream/Dockerfile +++ b/livestream/Dockerfile @@ -21,4 +21,7 @@ RUN apt-get update && \ FROM ubuntu COPY --from=builder /livestream /GeoLite2-City.mmdb / +COPY --from=builder /etc/ssl/certs /etc/ssl/certs +COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates + CMD ["/livestream"]