-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Bug]: can’t access the website #88
Comments
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 @acracker, if you are running the UI at a different url, you should override the environment variables. This is how you can override ENV variables: This is a full list of variables you can override: For the frontend, take a look here to make API requests to a different backend URL: |
hi, @KentonParton, I've changed this configuration, but it doesn't seem to be working |
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: