Skip to content

Conversation

@rohan-chaturvedi
Copy link
Member

@rohan-chaturvedi rohan-chaturvedi commented Dec 5, 2025

Adds docs for Cloud and Self hosted rate limiting


Note

Adds Cloud API rate limit docs and 429 example, notes self-hosted configurability, and documents RATE_LIMIT_DEFAULT and REDIS_SSL env vars (plus clarifies REDIS_PASSWORD requirement).

  • Public API docs (src/pages/public-api/index.mdx):
    • Add Rate Limits section with plan-based limits table and example 429 Too Many Requests response.
    • Note that self-hosted instances can configure rate limiting via RATE_LIMIT_DEFAULT.
  • Self-hosting config (src/pages/self-hosting/configuration/envars.mdx):
    • Add REDIS_SSL boolean env var description.
    • Clarify REDIS_PASSWORD is required for backend and worker.
    • Add RATE_LIMIT_DEFAULT env var under Additional Environment Variables for configuring API rate limits.

Written by Cursor Bugbot for commit 5ffaa5a. This will update automatically on new commits. Configure here.

Signed-off-by: rohan <rohan.chaturvedi@protonmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive documentation for rate limiting in both Phase Cloud and self-hosted deployments. The documentation clarifies the different rate limits for various subscription tiers and provides configuration guidance for administrators.

  • Adds a new RATE_LIMIT_DEFAULT environment variable to the self-hosting configuration documentation
  • Introduces a dedicated "Rate Limits" section to the public API documentation with tier-based limits
  • Provides example HTTP 429 response with headers to help developers handle rate limit errors

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/pages/self-hosting/configuration/envars.mdx Adds documentation for the RATE_LIMIT_DEFAULT environment variable with format examples and usage instructions
src/pages/public-api/index.mdx Adds comprehensive rate limiting section with subscription tier limits, HTTP 429 response example, and cross-reference to self-hosting configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 5, 2025

Deploying phase-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 98b253d
Status:⚡️  Build in progress...

View logs

@cursor
Copy link

cursor bot commented Dec 20, 2025

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on January 13.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants