tiangolo / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad Gateway returned

camilotabaresj opened this issue · comments

I'm trying to run the full project using pipx and docker-compose. But when i try to get in the frontend path http://localhost/login it returns Bad Gateway
Screenshot 2024-03-13 at 3 01 09 PM

The logs are

  1. proxy-1 | time="2024-03-13T20:01:03Z" level=debug msg="'502 Bad Gateway' caused by: dial tcp 172.25.0.2:80: connect: connection refused"
  2. proxy-1 | time="2024-03-13T20:09:51Z" level=error msg="the router fastapi-project-frontend-https@docker uses a non-existent resolver: le"

post more info on your system, your hosts file, and your .env. Make sure 127.0.0.1 is mapped to localhost.

This has been an ongoing issue for at least 2 months with multiple people posting that this is a problem. The front end is requesting https login and the backend is responding with a bad gateway. None of the responses have been helpful so far such as "clone an earlier branch" "post more info" "rebuild everything in docker". It's a configuration issue somewhere with https but no one seems to know what the issue is.