title: cannot connect an SSL secured database to typeorm
body: <p>This is my first time using NestJS and I am having trouble connecting my Postgres database which is hosted on Digitalocean to NestJS.</p>
  
  <p>I searched online for solutions and tried adding <code>"ssl": "true" or "extra": { "ssl": "true" }</code></p>
  
  <p>Heres my ormconfig.json</p>
  
  <pre><code>{
    "type": "postgres",
    "host": "host",
    "port": "port",
    "username": "username",
    "password": "password",
    "database": "database",
    "extra": {
      "ssl": "true"
    },
    "synchronize": "true",
    "logging": "true",
    "entities": ["src/**/*.entity.ts", "dist/**/*.entity.js"]
  }
  </code></pre>
  
  <p>I expect it to connect to the server. The error I'm getting is <code>[TypeOrmModule] Unable to connect to the database. error: no pg_hba.conf entry for host "", user "", database "", SSL off</code></p>