Skip to content

DEPLOY FIEF ON GCP #336

Answered by frankie567
MathieuGrosso asked this question in Q&A
Feb 14, 2024 · 3 comments · 23 replies
Discussion options

You must be logged in to vote

@louistransfer Nothing wrong with what you show me here. When accessing the root path / without a valid user session, Fief returns a redirection to /login (hence the 307 status code). By default, cURL doesn't follow redirections. You can add the -L flag to tell it to automatically follow redirections: https://everything.curl.dev/http/redirects#tell-curl-to-follow-redirects

@MathieuGrosso Yes, normally that's something proxy are doing by default, this is quite standard. GCP docs even claim it's the case: https://cloud.google.com/load-balancing/docs/https

...

I just had another look at your Dockerfile. I see that you are copying a .env file. Are you setting FORWARDED_ALLOW_IPS inside that f…

Replies: 3 comments 23 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
23 replies
@MathieuGrosso
Comment options

@MathieuGrosso
Comment options

@louistransfer
Comment options

@frankie567
Comment options

Answer selected by MathieuGrosso
@MathieuGrosso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants