You do not have access to the routing infrastructure, so it is impossible to add something like a proxy server based on nginx or apache modproxy. In my opinion, you can only bind to one port ($ PORT) inside the dynamometer so that it is not possible to obscure your Rails application with your own version of nginx with the manufacturer (unless it is possible to communicate via a non-TCP / IP socket between nginx and your application for racks / rails, if so, then maybe you can get a rack to listen to /tmp/mysocket.git and nginx for a reverse proxy, it may not be a starter, although I just throw away ideas),
This means the only plausible option, if you have to deal with it yourself in your rails application, I only have a tiny tiny bit of rails / ruby, but if rails does not have proxy functionality, you can probably explicitly accept and then use http- client to call other parts.
source share