UI Bakery in production

UI Bakery installation is ready for production out of the box. However, there is a bunch of additional setup steps we recommend following:

  • Put your instance behind HTTPS.

  • Use a standalone database.

  • Enable automatic backups for instance and database machines.

  • Store your environment variables in a secure place like a secrets manager or a key vault. Make sure you override the following variables:

UI_BAKERY_JWT_SECRET
UI_BAKERY_JWT_REFRESH_SECRET
UI_BAKERY_JWT_SERVICE_ACCOUNT_SECRET
UI_BAKERY_CREDENTIALS_SECRET
UI_BAKERY_MFA_SECRET

If you have used the install script, then your .env file already contains unique values for those vars. Otherwise, use the following guide to generate the secrets.

You can set the following environment variables to limit resource consumption (MB):

JAVA_OPTS=-Xmx1024m
NODE_OPTS=--max-old-space-size=1024

You can estimate memory size for both variables with the below multiplying:

S - request size in MB
T - time required to process request
N - number of concurrent requests 
MEMORY_NEEDED=S*T*N

Last updated