Although it might sound counterintuitive, but there are situations in which SSL might not be necessary, like deploying ourboard on a small machine where the PostgreSQL instance is running within a container π. Overall this would minimize the infrastructural ceremony involved to testdrive ourboard on a machine in the cloud. Right now this is not possible because of the ternary in the db.ts: https://github.com/raimohanska/ourboard/blob/b07f983440872ec6954b20e8152c50fda21d8f1d/backend/src/db.ts#L9 - Spontaneously, I would say that it might be a good idea to explicitly activate SSL via an environment variable, e.g. DATABASE_SSL_ENABLED=true where the default is false. I would take over the PR if you like π
Happy to hear your thoughts @raimohanska and keep up the awesome work!
Although it might sound counterintuitive, but there are situations in which SSL might not be necessary, like deploying
ourboard
on a small machine where the PostgreSQL instance is running within a container π. Overall this would minimize the infrastructural ceremony involved to testdriveourboard
on a machine in the cloud. Right now this is not possible because of the ternary in thedb.ts
: https://github.com/raimohanska/ourboard/blob/b07f983440872ec6954b20e8152c50fda21d8f1d/backend/src/db.ts#L9 - Spontaneously, I would say that it might be a good idea to explicitly activate SSL via an environment variable, e.g.DATABASE_SSL_ENABLED=true
where the default isfalse
. I would take over the PR if you like πHappy to hear your thoughts @raimohanska and keep up the awesome work!