I have a server with a servlet + a database in postgreSQL. I would like only the servlet to connect to the database.
When I configure pg_hba.conf with local all all md5 the servlet can not connect to the database. Then I need to configure it as host all 127.0.0.1 255.255.255.255 md5
With this second configuration I'm leaving postgreSQL open for any external IP?