Skip to content

Ngnix Deployment and Mixed Content Errors #156

Answered by afparsons
odedgolden asked this question in Q&A
Discussion options

You must be logged in to vote

Hi everyone,

I also encountered this problem. I am using:

  • Docker service: NGINX reverse proxy
  • Docker service: Gunicorn (with uvicorn workers)
  • Docker service: PostgreSQL (irrelevant here)
  • certificates from Let's Encrypt

This StackOverflow solved my problem: https://stackoverflow.com/a/70485650/4189676

I simply added --forwarded-allow-ips='*' to my Gunicorn command. I made no additional changes to my NGINX configuration.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@odedgolden
Comment options

Comment options

You must be logged in to vote
1 reply
@Uten92
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by aminalaee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants