Merge pull request #782 from automatisch/docs/docker-installation

docs: Docker installation
This commit is contained in:
Ali BARIN
2022-12-08 19:45:52 +01:00
committed by GitHub
10 changed files with 110 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ const verifyWebhook = async ($: IGlobalVariable) => {
const verifySignature = function (receivedSignature: string, payload: string) {
const hash = crypto
.createHmac('sha256', appConfig.appSecretKey)
.createHmac('sha256', appConfig.webhookSecretKey)
.update(payload)
.digest('base64');
return receivedSignature === `sha256=${hash}`;

View File

@@ -72,7 +72,7 @@ export default defineTrigger({
const subscriptionPayload = {
enabled: true,
url: $.webhookUrl,
secret: appConfig.appSecretKey,
secret: appConfig.webhookSecretKey,
};
await $.http.put(