p1gp3n
p1gp3n
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
i'll try this via fastapi
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
do i need to add a specific host to trust railway's reverse proxy?
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
tried updating the dockerfile's uvicorn command, but issue is still intermittently there. fyi did this:
CMD uvicorn electricgptapi.main:app --host 0.0.0.0 --port $PORT --proxy-headers
CMD uvicorn electricgptapi.main:app --host 0.0.0.0 --port $PORT --proxy-headers
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
let me try that...
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
ok. i believe there's a uvicorn command to trust the reverse proxy
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
(with the trailing slash)
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
regarding the trailing slash, this is the way that route is setup:
@router.get("/byemail/{email}", response_model=User)
@router.get("/byemail/{email}", response_model=User)
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
we haven't setup a proxy in our frontend deployment. is this recommended, and if so, are there railway guidelines for this?
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
but why does the redirect send to http?
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
what's strange is it is intermittent. if i refresh the page, it goes away. sometimes i can just hit the page and the issue isn't there. our only middleware is cors and logging
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
my backend code has no reference to http. i just start it with uvicorn
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
No description
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
thanks- will take a look
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
that's staging. prod is here: https://utly.ai/
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
utilitygpt-stage.up.railway.app
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
yes, prepends
45 replies
RRailway
Created by p1gp3n on 9/12/2023 in #✋|help
Mixed Content error: HTTP vs. HTTPS
No description
45 replies