-
Notifications
You must be signed in to change notification settings - Fork 572
Deployment Issue: GraphBuilder App on AWS Linux (Docker + Ollama) - auth0-spa-js must run on a secure origin #1238
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
Comments
Hi @damiannqn90 make sure VITE_SKIP_AUTH this variable is set to true to disable auth |
I have VITE_SKIP_AUTH set to true. When I run the backend and frontend separately and access the app through port 5173, everything works fine. However, when I launch the app with Docker, I get the error I mentioned earlier. Both .env files are identical—do I need to modify something in the docker-compose.yml file? running front and back separately, port 5173 running docker-compose port 8080 .env file : VITE_BACKEND_API_URL="http://34.241.17.195:8000" |
Hi @damiannqn90 if you see the code code the default for VITE_SKIP_AUTH is set to true and in docker compose file we mentioned the env file path add the .env with proper values in the frontend folder and then run the docker compose |
Thanks for your response @kartikpersistent As you can see below, I already have VITE_SKIP_AUTH set to true in my .env file: VITE_BACKEND_API_URL="http://34.241.17.195:8000" I’m not entirely sure if I’m interpreting your message correctly — please let me know if I’m missing something or if there’s anything else I should adjust, but with this config is not working (i am having the error message) Thanks again ! |
Hi @damiannqn90 I meant to add the the .env file in the frontend folder and redeploy |
Hi @kartikpersistent sorry but I’m even more confused now. Should I literally add the word “this” somewhere? Because if not, I don’t really understand. My .env file inside the frontend folder has always included the line: VITE_SKIP_AUTH=true When I run the project using Docker, I get the error. However, if I use the exact same .env file and run the backend and frontend manually (without Docker), I don’t get that error. Thanks for your help, and apologies in advance if I’m not fully understanding things. |
Hi @damiannqn90 it's better to connect and resolve the miscommunication |
Have you tried to Rum the application through docker then it should work in AWS Linux deployment |
I suggested adding a .env file in the front-end folder and then running docker-compose up --build |
Thank you very much for your response — I really appreciate it! I’ll share the step-by-step process below. I believe it would be very helpful if we could connect directly, as it might be easier to resolve this issue with a quick video call. Feel free to reach out to me at gaglianodamian90@gmail.com to coordinate a time or let me know your e-mail address so i can send you a Google meet. Step-by-step: 1 - .env file in AWS vm : 2 - Run docker-compose up --build 3 - Try to connecto with the front-end app by http://34.247.183.61:8080/ |
Hi @damiannqn90 where exactly the .env file is located for frontend we mentioned env file should be present withing frontend folder |
@kartikpersistent the .env file is located inside the folder of frontend, in ../graph_builder/llm-graph-builder/frontend/ |
Hi everyone,
I successfully set up GraphBuilder locally on my PC, running with Ollama in Docker and connected to a local DBMS. Now, I’m trying to deploy the same project to an AWS Linux instance and access it via the public IP (http://<PUBLIC_IP>:8080).
Steps Taken on AWS Linux:
Docker & Docker Compose: Installed and verified.
Ollama: Running in a container (same docker-compose.yml as local).
Ports: Confirmed 8080 is open in the AWS Security Group (inbound rules for 0.0.0.0/0).
Launch: The app starts without errors (docker-compose up -d shows all containers healthy).
The Issue:
When accessing http://<PUBLIC_IP>:8080, I get
index-e20483f0.js:40 Error:
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
JT @ index-e20483f0.js:40Entender este error
index-e20483f0.js:40 Uncaught Error:
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
Any idea if i have to change any .env file or the docker-compose file ??
Thanks :)
The text was updated successfully, but these errors were encountered: