This is now implemented:
https://github.com/discourse/discourse/commit/50b3a1734f77e0e6d25287b29a186286322053e7
Here’s the howto for detailed description: