benvinegar / counterscale

Scalable web analytics you run yourself on Cloudflare
https://counterscale.dev
MIT License
1.51k stars 66 forks source link

Dashboard Login Pass #102

Open xemorytr opened 1 month ago

xemorytr commented 1 month ago

The project source codes are made publicly viewable.

So it would be better if the admin panel entry is encrypted.

There may be something I missed, if there is a link to it, can you share it?

or

An idea to add a new feature to the project.

Thanks

dayofdoom commented 1 month ago

I've been wanting this too, and in the Cloudflare workers documentation there are some examples on basic authentication. Haven't pieced together how to make it work for Counterscale yet though.

benvinegar commented 1 month ago

It's true that today Counterscale depends on being deployed on a publicly-accessible URL. There is no authentication or user/login today.

But I agree this is important and consider it a high priority.

ka2590 commented 1 month ago

Something to check https://dev.to/charca/password-protection-for-cloudflare-pages-8ma. @benvinegar this actually worked, but for the entire project, but I am not sure if it affects data collection? So, I removed it for now.