There are various descriptions on the Internet on how to do that, but many of them seem to be outdated and some are contradictory; in some also the actual working part of solution (for me) was in comments, so I decided to share what worked for me.

Hopefully, if there are some changes, other people will be able to add other answers to keep it up to date.