ItzCrazyKns / Perplexica

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

Home page giving spinner but nothing else when using nginx reverse proxy #318

Closed michaelcalvinwood closed 2 months ago

michaelcalvinwood commented 3 months ago

Describe the bug The home page gives the spinner and nothing else when using nginx reverse proxy.

To Reproduce I installed docker on Ubuntu 22.04 I install Perplexica using the docker method and added my openAI key to the toml file. Here's my nginx reverse proxy settings. ` server { listen 80; server_name perplexica.ragfix.ai; return 301 https://$host$request_uri; }

server { listen 443 ssl; server_name perplexica.ragfix.ai;

ssl_certificate /etc/letsencrypt/live/perplexica.ragfix.ai/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/perplexica.ragfix.ai/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

location / {
    proxy_pass http://localhost:3000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

} `

Expected behavior I expected to be able to use Perplexica via https://perplexica.ragfix.ai.

Screenshot 2024-08-16 at 1 10 16 PM

Screenshots Screenshot attached.

bpawnzZ commented 3 months ago

https://github.com/ItzCrazyKns/Perplexica/discussions/271

i confirm this works!

Expro commented 3 months ago

Overall, current architecture make it unhostable for external access - communication between services needs to be both publicly available and unencrypted.

ItzCrazyKns commented 2 months ago

Reclone the project from Github and reinstall it (make sure to build fresh images), I did some changes and follow the networking guide: https://github.com/ItzCrazyKns/Perplexica/blob/master/docs/installation/NETWORKING.md