You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched GitHub for a duplicate issue and I'm sure this is something new
I have searched Google & StackOverflow for a solution and couldn't find anything
I have read and followed the docs and the FAQ's and still think this is a bug
I am confident that the issue is with swiple and not my configuration in docker/.env or docker/.env-non-dev
Description
I installed Swiple via Docker on a remote computer, but I can’t access the website. The remote computer’s IP address is 192.168.123.88. When I try to access http://192.168.123.88:3000/ through the browser, I noticed that the browser is making a request to this endpoint http://127.0.0.1:8000/api/v1/user/me. I think this might be the reason for the issue. So, I searched for “8000” in the project folder and replaced it with “3001,” then executed “docker compose -f docker-compose-non-dev.yaml up.” However, it didn’t work, and it’s still trying to access http://127.0.0.1:8000/api/v1/user/me.
If UI related, what browsers are you seeing the problem on?
I found that the static files for the UI are inside the image and not packaged with local files when creating the container.
I replaced “http://127.0.0.1:8000” with “http://192.168.123.88:8000” in the JavaScript files under the “/usr/share/nginx/html/static/js/” directory inside the container. However, the page is still not displaying correctly.
Furthermore, my English is poor, and I’m using translation software, so there might be some difficulty in understanding. Please forgive any confusion.
There are quite a few configurations to be done now, and there are multiple docker-compose.yml files, which make it a bit overwhelming for me.
We can simplify things and address cross-origin issues by using Nginx to proxy both the frontend(3000) and backend(8000) to port 80, even during local development.
hi, @KentonParton, I've changed this configuration, but it doesn't seem to be working ./frontend/.env.development:1:REACT_APP_API_DOMAIN=http://192.168.123.88:3001/api/v1
Initial Checks
docker/.env
ordocker/.env-non-dev
Description
I installed Swiple via Docker on a remote computer, but I can’t access the website. The remote computer’s IP address is 192.168.123.88. When I try to access http://192.168.123.88:3000/ through the browser, I noticed that the browser is making a request to this endpoint http://127.0.0.1:8000/api/v1/user/me. I think this might be the reason for the issue. So, I searched for “8000” in the project folder and replaced it with “3001,” then executed “docker compose -f docker-compose-non-dev.yaml up.” However, it didn’t work, and it’s still trying to access http://127.0.0.1:8000/api/v1/user/me.
If UI related, what browsers are you seeing the problem on?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: