mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
fix(websockets): add missing region parameter in api gateway client
This commit is contained in:
@@ -13,6 +13,9 @@ SNS_AWS_REGION=
|
||||
SQS_QUEUE_URL=
|
||||
SQS_AWS_REGION=
|
||||
|
||||
# (Optional) AWS API Gateway Setup
|
||||
API_GATEWAY_AWS_REGION=
|
||||
|
||||
WEB_SOCKET_CONNECTION_TOKEN_SECRET=
|
||||
WEB_SOCKET_CONNECTION_TOKEN_TTL=
|
||||
|
||||
|
||||
@@ -94,6 +94,7 @@ export class ContainerConfigLoader {
|
||||
container.bind<ApiGatewayManagementApiClient>(TYPES.WebSockets_ApiGatewayManagementApiClient).toConstantValue(
|
||||
new ApiGatewayManagementApiClient({
|
||||
endpoint: container.get(TYPES.WEBSOCKETS_API_URL),
|
||||
region: env.get('API_GATEWAY_AWS_REGION', true) ?? 'us-east-1',
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user