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

Countries statistics not working with self-hosted plausible + self-hosted next.js #136

Open
JEK58 opened this issue Nov 1, 2024 · 1 comment

Comments

@JEK58
Copy link

JEK58 commented Nov 1, 2024

When I started using this package with withPlausibleProxy option in the next.js config, I noticed that the countries statistics in plausible now show the country location of my self-hosted next.js server. Has anyone experienced this as well and found a solution?

@JEK58 JEK58 changed the title Countries statistics not working with self hosted plausible + self hosted next.js Countries statistics not working with self hosted plausible + selfhosted next.js Nov 1, 2024
@JEK58 JEK58 changed the title Countries statistics not working with self hosted plausible + selfhosted next.js Countries statistics not working with self-hosted plausible + self-hosted next.js Nov 1, 2024
@Aikain
Copy link

Aikain commented Nov 17, 2024

NextJS passes the necessary headers to infer the original user. Forwarded headers should not be trusted by default, but should be specified separately as trusted proxies.

If you use a reverse proxy, consult the documentation for that program. For example, I use Traefik myself and can directly specify trusted addresses using this instruction.

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

No branches or pull requests

2 participants