phusion / passenger

A fast and robust web server and application server for Ruby, Python and Node.js
https://www.phusionpassenger.com/
MIT License
5.01k stars 547 forks source link

Add ability to configure a Passenger app using GLS to use a Unix domain socket instead of a TCP socket #2207

Open ericfranz opened 5 years ago

ericfranz commented 5 years ago

Issue report

Question 1: What is the problem?

Your answer:

Passenger uses inter process communication with Node.js, Ruby, Python and Meteor apps using Unix domain sockets. Passenger 6's new Generic Language Support supports other languages using the passenger_app_start_command directive (using the NGINX example), where you specify $PORT in the command and Passenger will search for an open port when starting the application.

It would be great to be able to configure a Passenger app using GLS to use a Unix domain socket instead of a TCP socket. This would be especially useful in cases where port exhaustion or unauthenticated apps listening on TCP sockets could be problematic.

Question 2: Passenger version and integration mode:

Your answer:

open source 6.0.2/nginx

Question 3: OS or Linux distro, platform (including version):

Your answer:

RHEL7, x86_64

Question 4: Passenger installation method:

Your answer: [ ] RubyGems + Gemfile [ ] RubyGems, no Gemfile [ ] Phusion APT repo [ ] Phusion YUM repo [ ] OS X Homebrew [ ] source tarball [x] Other, please specify:

https://github.com/OSC/passenger_rpm_automation - a fork of phusion/passenger_rpm_automation so we can make an rpm of Phusion Passenger work with https://www.softwarecollections.org/en/

CamJN commented 5 years ago

Thanks for the suggestion.