It’s a bit complicated, but there’s a discussion for it over at this thread. Note that it’ll only work for self-hosted versions!