ItzCrazyKns / Perplexica

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

work well on localhost:3000 url , error on remote:3000 #50

Closed perlinson closed 2 months ago

perlinson commented 2 months ago

Describe the bug A clear and concise description of what the bug is. work on localhost:3000port , when i use a domain:3000 , on remote pc ,it not work , i use local ollama To Reproduce Steps to reproduce the behavior:

  1. F12
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

image

Additional context Add any other context about the problem here.

ItzCrazyKns commented 2 months ago

You need to change the IP in the docker-compose file to the private IP of the server where you deployed Perplexica.

perlinson commented 2 months ago

which one to change and where to change?

perlinson commented 2 months ago
image

here?

ItzCrazyKns commented 2 months ago

image here?

Looks perfect

perlinson commented 2 months ago
image

it got this problem

by the way image this proxy setting work well, but it's wrong when i use the

perlinson commented 2 months ago

i was using ubuntu 22.04 os

perlinson commented 2 months ago

i was solve the proxy problem, just left the "Access-Control-Allow-Origin" problem

ItzCrazyKns commented 2 months ago

I've already implemented CORS on the backend server, so it should not produce errors like this. We only provide installation support in Perplexica. If you wish to expose it to your network, you should have sufficient knowledge to do so on your own, and therefore, we cannot assist you with that.

lzmfor commented 2 months ago

Sorry, I still get trouble at this issue. I have changed ip, but still can't access it from another pc on the LAN. (Home page keeps loading)

... ...
  - NEXT_PUBLIC_API_URL=http://192.168.31.19:3001/api
  - NEXT_PUBLIC_WS_URL=ws://192.168.31.19:3001
... ...

networks: perplexica-network: