from https://github.com/optiflows-cookbooks/prosody/commit/86a23da2b6908649042a6f770f4de0871413709b