Merge pull request #782 from automatisch/docs/docker-installation
docs: Docker installation
This commit is contained in:
@@ -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}`;
|
||||
|
@@ -72,7 +72,7 @@ export default defineTrigger({
|
||||
const subscriptionPayload = {
|
||||
enabled: true,
|
||||
url: $.webhookUrl,
|
||||
secret: appConfig.appSecretKey,
|
||||
secret: appConfig.webhookSecretKey,
|
||||
};
|
||||
|
||||
await $.http.put(
|
||||
|
Reference in New Issue
Block a user