For Azure, perhaps this helps?
Otherwise, our standard point of reference: https://docs.nodebb.org/en/latest/configuring/proxies.html
every other 5 minutes，nodebb disconnect ，How can I solve it?
logs/output.log for errors, check your browser console for errors, make sure you access the forum with the url you specified in
every other 5 minutes, my browser console many errors, eg:
GET http://www.seenewyun.com/socket.io/?EIO=3&transport=polling&t=MOJNhdj 502 (Bad Gateway)
,but nodebb can auto connect.