ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
12.48k stars 1.16k forks source link

Feature request: Authentication and multiple user support? #248

Open poisson-sg opened 1 month ago

poisson-sg commented 1 month ago

Dear Perplexica team:

Excellent work. Is there a plan to add authentication and multiple-user support so that the deployment can be used by different people with their own API keys?

Thanks!

nirabo commented 1 month ago

@poisson-sg You may run the service behind Authelia, which will add an auth layer (at least I do so), but this will still not solve your multi-user/session request, which will be of great value. On the other hand, given that GPU resources will likely be limited, I would recommend to reduce the model choice to avoid GPU OOM situations.

fobtastic commented 3 weeks ago

@nirabo Can you go into how you integrated with Authelia?

nirabo commented 3 weeks ago

@fobtastic

@nirabo Can you go into how you integrated with Authelia?

I've followed the nginx-proxy-manager with authelia integration video here (https://www.youtube.com/watch?v=4UKOh3ssQSU) and started both in one docker composition. perplexica was running in its default docker composition (as per repo), alongside searXNG etc. I then created a new proxy instance in the proxy-manager dashboard following the instructions from the YT video and all went to work pretty nicely. Go have a check and let me know if you hit any underwater rocks.