Hello,
Please follow the upgrade documentation that will display configuration changes: PeerTube documentation
Same for nginx: PeerTube documentation
I updated the changelog with a link to the part of the configurations that changed: Release v5.0.0 · Chocobozzz/PeerTube · GitHub