Discourse Rails as a proxy

My first question is why? What are you trying to achieve here?

If you only need to forward certain routes, that’s more easily done in nginx or something that happens before your rails server is hit.