Glad you got it working! Couple things I need to point out though:
1) Modifying internal files is not supported and risky. The pg_hba.conf file was getting updated because Portal is expecting and writes certain contents to it
2) The 2020-02-26 18:20:03.002 UTC [10957] FATAL: no pg_hba.conf entry for host "[local]", user "centos", database "centos", SSL off errors are expected. Portal is checking the status of the database, but prior to 10.8, doesn't check with a username nor DB, so it assumes the install user. These can be ignored. This is fixed at 10.8.
3) The trust setting allows you to connect to the database without a password, which is a security risk. Allowing anyone to connect from anywhere (0.0.0.0 and ::/0) is certainly not something you want to do.