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

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

Closed
michaelcalvinwood opened this issue Aug 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@michaelcalvinwood
Copy link

michaelcalvinwood commented Aug 16, 2024

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.

@michaelcalvinwood michaelcalvinwood added the bug Something isn't working label Aug 16, 2024
@bpawnzZ
Copy link

bpawnzZ commented Aug 18, 2024

#271

i confirm this works!

@Expro
Copy link

Expro commented Aug 20, 2024

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

@ItzCrazyKns
Copy link
Owner

ItzCrazyKns commented Aug 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants