Add Postgresql support
I have adapted most of the SQL queries using the ‘objection’ library as much as possible. These were tested in a containerised app with the Postgres and MySQL databases.
I haven't tested SSL certificate creation, but the queries in this section are normally compatible.
Docker Image for build 1 is available on
DockerHub
as nginxproxymanager/nginx-proxy-manager-dev:pr-4087
Note: ensure you backup your NPM instance before testing this image! Especially if there are database changes Note: this is a different docker image namespace than the official image
FYI I'm aware this exists and conflicts with #4086 but just need properly review both and decide on the best one.
I've taken parts of this PR and merged it. Thanks for the contribution :)