I have an installation up and running but have a problem with emoji image path.
I have used this guide: discourse/INSTALL-cloud.md at master · discourse/discourse · GitHub and have used
./launcher rebuild app
after changing settings in app.yml
I may have initially configured
But layer changed to
Say I have a main domain:
and a subdomain:
which for some URI’s uses Apache’s ProxyPass, e.g. for foo.bar.com:
ProxyPass "/" "http://localhost:8090/"
ProxyPassReverse "/" "http://localhost:8090/"
and in app.yml I have the following settings:
then everything is loaded as expected (including other images) except emoijis, e.g.:
in which case it attempts to retrieve the image from the main domain:
with a 404 response.
It appears that the
bar.com is used instead of
foo.bar.com as an absolute path in this particular situation, i.e. from the source code of the loaded page it refers respectively to a relative path
<meta name="twitter:image" content="/images/default-apple-touch-icon.png" />
and an absolute path
<p>Congratulations! <img src="//bar.com/images/emoji/google_classic/confetti_ball.png?v=5" title=":confetti_ball:" class="emoji" alt=":confetti_ball:"></p>
In the case of a relative path it works, but for the absolute path it doesn’t. And I don’t know how to change the absolute path