Open kylejschultz opened 1 year ago
Hi, thanks for the detailed report!
Regarding the redirect, is there a chance traefik is the cause here? Looking at the provided environment/docker files everything should be working. I'm unsure how it's even returning undefined
on the redirect URI unless your frontend .env
is missing.
If you'd like to check the code yourself, you can find it in the following files:
Also, I may have declined your friend on Discord (been getting a lot of spam adds recently). If you still want to talk send it again!
Cheers
had almost the same issue, fixed it with deploying my owwn nginx.conf to the frontend container with:
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
since nginx inside the frontend Contrainer seemed to do the routing for /login and such. After altering that config it worked for me
I've got the stack deployed successfully and I'm able to reach the home page the the API appears to be up as well. When I attempt to log in with Discord in the top right corner, however, it throws me to a 404 with a path of /undefined. I'm wondering if I've maybe missed something in the .env files that would handle this? I've gone in and updated both the front and backend with client IDs,
VUE_APP_API_HOST
and the JWT key. I imagine that thelocalhost
references need to be there, as it's pointing to it's path inside of the container, but let me know if I'm misunderstanding.Was ultimately hoping to host this and eventually integrate a Discord bot with the data that's pulled to make it accessible to my group via Discord commands, but would obviously require the authentication mechanism first. If this integration is something you're interested in having merged in down the line as an offering, I can work on submitting a PR once I get something working.
I went ahead and added a copy of both my
.env
files as well as mydocker-compose.yml
that I used to deploy. I did have to adjust the networks and volume pathing for my environment, and did not require the SSL pathing as Traefik handles the redirect using the labels. I'm on Discord and can chat there if it's easier for you, I sent over a friend request just now.Thanks! Kyle
./backend/.env.production.local
./frontend/.env
docker-compose.yml