Skip to content

Instantly share code, notes, and snippets.

@Dionid
Created July 8, 2020 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dionid/6ad1e18d894788065266d529d9798159 to your computer and use it in GitHub Desktop.
Save Dionid/6ad1e18d894788065266d529d9798159 to your computer and use it in GitHub Desktop.
MikroORM TypeScript minimal PostreSQL config with ssl (for heroku / hasura)
const config = {
entities: [],
driverOptions: {
connection: {
ssl: {
require: true,
rejectUnauthorized: false,
},
},
},
type: "postgresql",
clientUrl: "#{FULL_PATH}?ssl=true",
}
export default config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment