New user invite links only give ERR_SSL_PROTOCOL_ERROR

Try to clear it please:

#everything above and then
SiteSetting.port = ''
exit
exit
./launcher restart app