config.ts126 lines · main
| 1 | const config = { |
| 2 | auth: { |
| 3 | rate_limits: { |
| 4 | email: { |
| 5 | /** |
| 6 | * The number of emails that can be sent per hour using the inbuilt email server. |
| 7 | */ |
| 8 | inbuilt_smtp_per_hour: { |
| 9 | value: 2, |
| 10 | }, |
| 11 | }, |
| 12 | magic_link: { |
| 13 | /** |
| 14 | * Wait time between requests. |
| 15 | */ |
| 16 | period: { |
| 17 | value: 60, |
| 18 | unit: 'seconds', |
| 19 | }, |
| 20 | /** |
| 21 | * How long before a Magic Link expires. |
| 22 | */ |
| 23 | validity: { |
| 24 | value: 1, |
| 25 | unit: 'hour', |
| 26 | }, |
| 27 | }, |
| 28 | otp: { |
| 29 | /** |
| 30 | * Wait time between requests. |
| 31 | */ |
| 32 | period: { |
| 33 | value: 60, |
| 34 | unit: 'seconds', |
| 35 | }, |
| 36 | /** |
| 37 | * How long before an OTP expires. |
| 38 | */ |
| 39 | validity: { |
| 40 | value: 1, |
| 41 | unit: 'hour', |
| 42 | }, |
| 43 | /** |
| 44 | * How many OTPs can be requested per hour. |
| 45 | */ |
| 46 | requests_per_hour: { |
| 47 | value: 30, |
| 48 | }, |
| 49 | }, |
| 50 | signup_confirmation: { |
| 51 | /** |
| 52 | * Wait time between requests. |
| 53 | */ |
| 54 | period: { |
| 55 | value: 60, |
| 56 | unit: 'seconds', |
| 57 | }, |
| 58 | }, |
| 59 | password_reset: { |
| 60 | /** |
| 61 | * Wait time between requests. |
| 62 | */ |
| 63 | period: { |
| 64 | value: 60, |
| 65 | unit: 'seconds', |
| 66 | }, |
| 67 | }, |
| 68 | verification: { |
| 69 | requests_per_hour: { |
| 70 | value: 360, |
| 71 | }, |
| 72 | requests_burst: { |
| 73 | value: 30, |
| 74 | }, |
| 75 | }, |
| 76 | token_refresh: { |
| 77 | requests_per_hour: { |
| 78 | value: 1800, |
| 79 | }, |
| 80 | requests_burst: { |
| 81 | value: 30, |
| 82 | }, |
| 83 | }, |
| 84 | mfa: { |
| 85 | requests_per_hour: { |
| 86 | value: 15, |
| 87 | }, |
| 88 | requests_burst: { |
| 89 | value: 30, |
| 90 | }, |
| 91 | }, |
| 92 | anonymous_signin: { |
| 93 | requests_per_hour: { |
| 94 | value: 30, |
| 95 | }, |
| 96 | requests_burst: { |
| 97 | value: 30, |
| 98 | }, |
| 99 | }, |
| 100 | }, |
| 101 | hook_timeouts: { |
| 102 | postgres_hooks: { |
| 103 | value: 2, |
| 104 | }, |
| 105 | http_hooks: { |
| 106 | value: 5, |
| 107 | }, |
| 108 | }, |
| 109 | }, |
| 110 | branching: { |
| 111 | inactivity_period_in_minutes: { |
| 112 | value: 5, |
| 113 | }, |
| 114 | }, |
| 115 | pausing: { |
| 116 | /** |
| 117 | * Inactivity period after which projects may be paused. |
| 118 | */ |
| 119 | free_tier: { |
| 120 | value: '1', |
| 121 | unit: 'week', |
| 122 | }, |
| 123 | }, |
| 124 | } as const |
| 125 | |
| 126 | export default config |