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
You must log in or register to comment.