diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index b2741296..44796276 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -269,7 +269,7 @@ export async function supaAuthenticateUser( return { success: false, - error: `Rate limit exceeded. Consumed points: ${rateLimiterRes.consumedPoints}, Remaining points: ${rateLimiterRes.remainingPoints}. Upgrade your plan at https://firecrawl.dev/pricing for increased rate limits or please retry after ${secs}s, resets at ${retryDate}`, + error: `Rate limit exceeded. Consumed (req/min): ${rateLimiterRes.consumedPoints}, Remaining (req/min): ${rateLimiterRes.remainingPoints}. Upgrade your plan at https://firecrawl.dev/pricing for increased rate limits or please retry after ${secs}s, resets at ${retryDate}`, status: 429, }; } diff --git a/apps/dragonfly/fly.toml b/apps/dragonfly/fly.toml new file mode 100644 index 00000000..14bdbd96 --- /dev/null +++ b/apps/dragonfly/fly.toml @@ -0,0 +1,27 @@ +app = 'firecrawl-dragonfly' +primary_region = 'iad' + +[experimental] + cmd = ['dragonfly','--logtostderr', '--cluster_mode=emulated', '--lock_on_hashtags', "--bind","::"] +[build] + image = 'ghcr.io/dragonflydb/dragonfly' + +[[mounts]] + source = 'firecrawl_dragonfly' + destination = '/data' + +[[services]] + protocol = 'tcp' + internal_port = 6379 + + [[services.tcp_checks]] + interval = '10s' + timeout = '2s' + +[[vm]] + size = 'performance-4x' + memory = '32gb' + +[[metrics]] + port = 9091 + path = '/metrics'