hosting.py 929 B

123456789101112131415161718192021222324
  1. """Constants related to hosting."""
  2. import os
  3. from reflex.constants.base import Reflex
  4. class Hosting:
  5. """Constants related to hosting."""
  6. # The hosting config json file
  7. HOSTING_JSON = os.path.join(Reflex.DIR, "hosting_v0.json")
  8. # The hosting service backend URL
  9. CP_BACKEND_URL = "https://rxcp-prod-control-plane.fly.dev"
  10. # The hosting service webpage URL
  11. CP_WEB_URL = "https://control-plane.reflex.run"
  12. # The number of times to try and wait for the user to complete web authentication.
  13. WEB_AUTH_RETRIES = 60
  14. # The time to sleep between requests to check if for authentication completion. In seconds.
  15. WEB_AUTH_SLEEP_DURATION = 5
  16. # The time to wait for the backend to come up after user initiates deployment. In seconds.
  17. BACKEND_POLL_RETRIES = 45
  18. # The time to wait for the frontend to come up after user initiates deployment. In seconds.
  19. FRONTEND_POLL_RETRIES = 30