Closed daniel-l closed 1 month ago
You can use docker compose up -d --build
to build your own images, I can't be building images for everyone's IP nor it is possible to change the NextJS env vars at runtime, there's nothing I can do.
there's nothing I can do.
It's easily done at runtime and there's no need to provide separate images for every possible IP:port combination.
That's a really bad way of changing variables. It might mess with other parts of the application and introduce unexpected behavior. The current method of building custom images is more reliable for preventing potential issues.
Describe the bug Perplexica's frontend usees hardcoded IPs and ports in it's javascripts. When deploying Perplexica on a remote server (e.g. a headless machine on the LAN and not on the user's PC) the frontend won't work. The spinning icon will be displayed endlessly and the dev console will still try to connect to a non-existing Perplexica backend on the local machine.
To Reproduce Steps to reproduce the behavior:
Open Perplexica web interface on host machine
dev console shows errors: a javascript still tries to access the hardcoded IP:port combination 127.0.0.1:3001 to connect to the backend API:
Expected behavior Perplexica should fully respect a user's IP and port modifications in config.toml an docker-compose.yaml to ensure that remote deployments and changed ports (e.g. because the default ports are already in use) are used app wide.