If you had a working standard install, you should be able to put things back that way and have it all still work.
The postgres issue might be related to PostgreSQL 13 update?
If you made a backup before you started you can install on a fresh server and restore that backup. That should be a worst case scenario.