Never expose #PostgreSQL, #Redis, or similar private services to the internet. Always connect to them via a UNIX socket, or over a private cloud network. However, if you must access them via the internet, secure them with a self-signed certificate. Here's how:
Generating self-signed certificates for web services
Private web services such as PostgreSQL or Redis shouldn't be exposed to the internet. This keeps them secure, as they can only be accessed via an SSH session to the machine...
binarysolo.blog