To configure email sending from fh-mbaas
, the email.transport
configuration property must be set to:
""
to use the default transport (sendmail)."sendgrid"
- to use sendgrid. The following config must also be set on the email.sendgrid
object: "auth": {
"api_user": "SENDGRID_USER",
"api_key": "SENDGRID_PASSWORD"
}
"smtp"
- to use SMTP. An SMTP connection URL must also be set on the email.smtp
string:"smtps://user:password@smtp.example.com"
For OSE3 images, fh-mbaas will use smtp
by default. An administrator must add an Environment variable to configure fh-mbaas
to use a local SMTP relay/server - the name of this environment variable is FH_EMAIL_SMTP
and it should be set to an SMTP URL:
e.g.
smtps://user:password@smtp.example.com
Modules published to npm.skunkhenry.com.
For development purposes, we can build a CentOS based Docker image and watch for changes in the local filesystem which would be reflected in the running image.
grunt fh-generate-dockerised-config
docker build -t docker.io/my-Username/fh-mbaas:dev -f Dockerfile.dev .
docker push docker.io/my-Username/fh-mbaas:dev
oc edit dc fh-mbaas
The development image will allow you to sync local code changes to the running container without the need for rebuilding or redeploying the image.
From the root of the `fh-mbaas directory, run the following:
oc rsync --no-perms=true --watch ./lib $(oc get po | grep fh-mbaas | grep Running | awk '{print $1}'):/opt/app-root/src
oc set probe dc fh-mbaas --liveness --readiness --remove=true
oc port-forward $(oc get po | grep fh-mbaas | grep Running | awk '{print $1}') :5858
. - This will forward port 5858 from the running Pod to a local port. Note the port.launch.json
file similar to the following, using the port obtained above via the port forward command:{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to Remote",
"address": "localhost",
"port": 59180,
"localRoot": "${workspaceRoot}",
"remoteRoot": "/opt/app-root/src/"
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/fh-mbaas.js"
}
]
}
Attach to Remote
.fh-mbaas is licensed under the Apache License, Version 2.0.