Open WaKeMaTTa opened 6 years ago
@WaKeMaTTa could you please help me what's the difference between a regular reverse proxy and a Ruby on Rails reverse proxy?
@valentinxxx Ok. When I have time, I will put in this issue all the differences.
looking at the example, the primary difference appears to be around serving static content directly from nginx and only going to the proxy for dynamic pages.
The static pages are located in /public
folder of the application.
I second using passenger!
Either way, I'd love to see this tool with RoR setup. I've gotten pretty good at doing it manually (my way at least, no idea if it's correct) but this is a great tool.
Rails uses Puma by default. I think this tool can support Puma first.
Has there been any progress on this? Would love to see an addition of RoR w/Puma in the configurator.
Did a bit of work to build a Rails configuration option on here that doesn't require Passenger. If anyone wants to take a peak at it to check things are good. The seem good in my environment.
Resources: My own production nginx configuration Tom Pave's nginx.conf: https://gist.github.com/tompave/8590031
I'll be adding a little bit more configuration down the line to disable some things for use in Azure + Active Storage blob configurations. There's some weird caching issues with it but not sure if it's been fixed so I left that specific configuration out.
(marking this as assigned per the open PR)
The 5.2 version of the capistrano-puma gem had a pretty good Nginx configuration tool with a well-constructed template. I haven't found a viable alternative.
Example: https://itnext.io/docker-rails-puma-nginx-postgres-999cd8866b18#d08e