# Discourse Rails as a proxy

**URL:** <https://meta.discourse.org/t/discourse-rails-as-a-proxy/61719>\
**Category:** Development\
**Created:** [27 أبريل 2017، 2:18م UTC](https://meta.discourse.org/t/discourse-rails-as-a-proxy/61719 "2017-04-27T14:18:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![EndruK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/endruk/32/50211_2.png) [@EndruK](https://meta.discourse.org/u/EndruK)\
**Post date:** [27 أبريل 2017، 2:18م UTC](https://meta.discourse.org/t/discourse-rails-as-a-proxy/61719/1 "2017-04-27T14:18:13Z")

</div>

Hi,  
I want to use my Discourse as a proxy.  
For that the rails server should work as a proxy between the ember frontend and a registered remote URL.

Currently I am able to forward the HTTP response to ember and render it there.  
But now I got some problems linking additional dependencies like images or stylesheets (all the stuff of the web root)

Here is an example flow diagram:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/a/5abfa83d14028326b85c062711e8774850e36e9f.png)

How can I make a link to these things such that the dependencies appear to be on my rails server for example in the web root?

Best regards.

---

_[View the full topic](https://meta.discourse.org/t/discourse-rails-as-a-proxy/61719)._
