2 years ago
Hey! I currently have a Django application deployed on Railway through a Dockerfile, with a Cloudflare proxy on top. I was wondering: should I also add Nginx to the image, or is it irrelevant? What would I benefit from having Nginx sitting above the Django application?
1 Replies
2 years ago
A lot of people recommended adding NGINX or a similar web server application in front of Django applications to have NGINX serve the media and static files instead of having Django do that, the logic being that NGINX is going to be far better / efficient at serving media and assets than a Django application is, and while that's technically correct, in practice it is not going to make a difference for Django applications with low to moderate traffic.
In summary, unless you have a very high traffic app and are already running into bottlenecks serving media and assets I personally wouldn't worry about adding NGINX or similar.
Status changed to Solved brody • over 1 year ago
