this post was submitted on 07 Aug 2024
1 points (100.0% liked)

nginx

4 readers
1 users here now

The nginx community on Reddit. Reddit gives you the best of the internet in one place.

founded 1 year ago
MODERATORS
 
The original post: /r/nginx by /u/AggressiveDuck6739 on 2024-08-06 06:11:18.

Hi, I have setup my code to have my nginx config listen or 80 and have my gunicorn on 8080. I then have my local to my 5000. Can anyone provide me some insights on what is wrong? I can post my code later but any tips would be helpful.

Nginx file

upstream gunicorn { server 127.0.0.1:8080; }

server { listen 80; server_name - fantasychamps

location / {
    proxy_pass http://gunicorn;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

Procfile

web: gunicorn --bind 0.0.0.0:8080 application:app

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here