Skip to content

Commit

Permalink
chore: move captcha config
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Mar 12, 2024
1 parent fd43ab1 commit 5b5fd24
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions packages/backend/server/src/config/affine.self.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ AFFiNE.plugins.use('redis');
AFFiNE.plugins.use('payment');
AFFiNE.plugins.use('oauth');

/* Captcha Plugin Default Config */
AFFiNE.plugins.use('captcha', {
turnstile: {},
challenge: {
bits: 20,
},
});

if (AFFiNE.deploy) {
AFFiNE.mailer = {
service: 'gmail',
Expand Down
14 changes: 7 additions & 7 deletions packages/backend/server/src/config/affine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ AFFiNE.plugins.use('payment', {
stripe: { keys: {}, apiVersion: '2023-10-16' },
});

/* Captcha Plugin Default Config */
AFFiNE.plugins.use('captcha', {
turnstile: {},
challenge: {
bits: 20,
},
});
// /* Captcha Plugin Default Config */
// AFFiNE.plugins.use('captcha', {
// turnstile: {},
// challenge: {
// bits: 20,
// },
// });

// /* Cloudflare R2 Plugin */
// /* Enable if you choose to store workspace blobs or user avatars in Cloudflare R2 Storage Service */
Expand Down

0 comments on commit 5b5fd24

Please sign in to comment.