digitalocean / nginxconfig.io

⚙️ NGINX config generator on steroids 💉
https://do.co/nginxconfig
MIT License
27.77k stars 2.05k forks source link

Feature request: Ruby on Rails application (puma) #35

Open WaKeMaTTa opened 6 years ago

WaKeMaTTa commented 6 years ago

Example: https://itnext.io/docker-rails-puma-nginx-postgres-999cd8866b18#d08e

0xb4lint commented 5 years ago

@WaKeMaTTa could you please help me what's the difference between a regular reverse proxy and a Ruby on Rails reverse proxy?

WaKeMaTTa commented 5 years ago

@valentinxxx Ok. When I have time, I will put in this issue all the differences.

Trozz commented 5 years ago

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.

WaKeMaTTa commented 5 years ago

The static pages are located in /public folder of the application.

dush commented 5 years ago

What about using Passenger https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/deploying_your_app/oss/ownserver/ruby/nginx/#rails_configuring-nginx-and-passenger

DRBragg commented 5 years ago

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.

huseyin commented 4 years ago

Rails uses Puma by default. I think this tool can support Puma first.

colinrubbert commented 3 years ago

Has there been any progress on this? Would love to see an addition of RoR w/Puma in the configurator.

colinrubbert commented 3 years ago

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.

MattIPv4 commented 3 years ago

(marking this as assigned per the open PR)

climatebrad commented 3 months ago

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.

skull-squadron commented 2 weeks ago

Falcon and Puma are the fastest and free rack servers. Passenger is a crippled commercial product.