1. Environment Variables

The following environment variables can be used to configure the katapp backend.

Name of the environment variableRequiredDefaultMeaning and Usage
KATAPP_WS_PORTNO9998specify the port of the WebSocket server, allowed values: 0, …, 65353
KATAPP_HTTP_PORTNO9997specify the port of the HTTP server, allowed values: 0, …, 65353
KATAPP_STORE_DRIVERNO“DynamoDB” for aws deployment, “MongoDB” for otherspecify the type of storage driver, allowed values: “MongoDB” or “DynamoDB”
KATAPP_STORE_ENDPOINTYES-specify the endpoint of the blob storage
KATAPP_DATABASE_NAMENO-specify the database name
KATAPP_BLOB_DRIVERNO“S3” for aws deployment, “MongoDB” for otherspecify the blob storage driver, allowed values: “S3” or “MongoDB”
KATAPP_BLOB_ENDPOINTYESsspecify the endpoint of the blob storage
KATAPP_S3_BUCKET_NAMENO“katapp”specify the name of the s3 storage bucket
KATAPP_WEBSOCKET_CONNECTION_URLONLY for AWS-specify the WebSocket connection url
KATAPP_TOKEN_SECRETYES-specify the jwt token salt
KATAPP_STORE_USERSYES-specify the store name of the user store
KATAPP_STORE_DEVICESYES-specify the store name of the device store
KATAPP_STORE_TENANTSYES-specify the store name of the tenant store
KATAPP_STORE_WEBSOCKET_CLIENTSYES-specify the store name of the web socket client store
KATAPP_STORE_DISASTERSYES-specify the store name of the disaster store
KATAPP_STORE_TRIAGESYES-specify the store name of the triage store
KATAPP_STORE_PATIENTSYES-specify the store name of the patient store
KATAPP_STORE_ROLESYES-specify the store name of the role store
KATAPP_STORE_BILLINGYES-specify the store name of the billing store
KATAPP_ESTIMATED_COST_PER_API_GATEWAY_REQUESTYES-specify the cost per request for the service: AWS API Gateway
KATAPP_ESTIMATED_COST_PER_WEB_SOCKET_REQUESTYES-specify the cost per request for the service: AWS API Gateway WebSocket
KATAPP_ESTIMATED_COST_PER_LAMBDA_INVOCATIONYES-specify the cost per request for the service: AWS Lambda
KATAPP_ESTIMATED_COST_PER_DYNAMODB_READYES-specify the cost per read request for the service: AWS DynamoDB
KATAPP_ESTIMATED_COST_PER_DYNAMODB_WRITEYES-specify the cost per write request for the service: AWS DynamoDB
KATAPP_ESTIMATED_COST_PER_S3_READYES-specify the cost per read request for the service: AWS S3
KATAPP_ESTIMATED_COST_PER_S3_WRITEYES-specify the cost per write request for the service: AWS S3
KATAPP_API_STAGENO“Unknown”specify the api stage
KATAPP_API_VERSIONNO“Unknown”specify the api version
KATAPP_DEPLOYMENT_DATENO“Unknown”specify the deployment date
KATAPP_GIT_COMMIT_HASHNO“Unknown”specify the git commit hash
KATAPP_GIT_COMMIT_DATENO“Unknown”specify the git commit date
KATAPP_GIT_COMMIT_TEXTNO“Unknown”specify the git commit text
KATAPP_GIT_COMMIT_AUTHORNO“Unknown”specify the git commit author
KATAPP_GIT_BRANCHNO“Unknown”specify the git branch