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

Proxy requests to PostHog #165

Merged
merged 8 commits into from
Sep 25, 2024
Merged

Proxy requests to PostHog #165

merged 8 commits into from
Sep 25, 2024

Conversation

lebaudantoine
Copy link
Collaborator

Set-up a reverse proxy, to avoid ad blockers

@lebaudantoine lebaudantoine force-pushed the reverse-proxy branch 2 times, most recently from 72491f1 to b3efabc Compare September 23, 2024 10:21
@rouja rouja force-pushed the reverse-proxy branch 9 times, most recently from 3c3a51e to bcb17f9 Compare September 23, 2024 16:05
@lebaudantoine lebaudantoine force-pushed the reverse-proxy branch 3 times, most recently from e8e3a48 to 4e3a6b0 Compare September 23, 2024 16:56
@rouja rouja force-pushed the reverse-proxy branch 3 times, most recently from ecf1600 to 946b441 Compare September 24, 2024 09:40
@lebaudantoine lebaudantoine force-pushed the reverse-proxy branch 3 times, most recently from 7cfdefb to 7bf940b Compare September 24, 2024 22:05
lebaudantoine and others added 7 commits September 25, 2024 10:44
Proxy analytics requests through our backend to minimize
ad-blockers impact. I configured the Helm Charts following
PostHog official documentation.
Introduced by @rouja. Added a new linter to ensure helm and yaml
files can be properly parsed into templates.
ArgoCD can not break anymore.
Initial set-up errors. Fixed them. Removed unused Preprod environment,
as secrets are not configured yet, it raises an error.
Fixed by @rouja. ArgoCD should be more robust than ever, while
syncing with our code.
Inspired by Joanie.

In Frontend context, env variables are only available at build time,
not runtime. This is one of the easiest way to pass frontend dynamic
configurations while running.

This commit only exposes the view already existing.
Query API to get the App's configs.
Replacement for env variables, thus with a single image,
we can dynamically update frontend's behavior.

Code inspired by Marsha. Not sure having a single component
returning null is a good idea, to be discussed.
Declare the expected support and analytics env variables
expected by the frontend for each environment. To avoid consuming
too much credits from our PostHog free tier plan.
Based on feedback from @rouja, I've updated the Helm configuration for PostHog
to use separate ingress resources for each service. Although the documentation
suggests sharing the same ingress, the services have different externalName
values, which conflicts with the use of a vhost in the ingress annotations.
This change ensures proper service redirection by aligning each service with
its own ingress.
@lebaudantoine lebaudantoine merged commit e4c7bc0 into main Sep 25, 2024
9 of 10 checks passed
@lebaudantoine lebaudantoine deleted the reverse-proxy branch October 9, 2024 13:13
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