To make my setup less complicated per @codinghorror’s advice, and since Let’s Encrypt now support subdomains, I decided to move my discourse from foo.bar/forum to forum.foo.bar
What I did:
Changed the domain name in my app.yml, removed the folder remap from custom commands, then remapped foo.bar/forum to forum.foo.bar via discourse remap, then I rebaked posts.
Okay great that worked! Now the only thing left is to fix all my missing images. I’m getting a 404 on all uploaded avatars and uploaded images. Very odd.
Update:
All images return 404. I rebaked posts, recovered uploads from tombstone, and double-checked whether or not the images exist in the directories.
yet it exists both in /var/www/discourse/public/uploads/default/original/1X and in /shared/uploads/default/original/1X (which is symlinked successfully, therefor)
@Ironclad14, у меня возникла та же проблема, что и у вас. Я хотел бы узнать, удалось ли вам найти способ её исправить. Если да, не могли бы вы поделиться?