GitDeployHub

lwhfxmoss/sub2api-oauth-sleeper-plugin

github.com/lwhfxmoss/sub2api-oauth-sleeper-plugin ↗
Python
20 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)

  • DATABASE_URL secret Required: PostgreSQL connection string for the existing Sub2API database. In Docker Compose this usually points to the Postgres service…
  • PLUGIN_ADMIN_TOKEN secret
  • HOST Web server listen address inside the container.
  • PORT
  • DEFAULT_SLEEP_THRESHOLD_PERCENT Initial defaults used only when the plugin settings row is first created. Later changes are stored in plugin_oauth_sleeper_settings and can…
  • SCAN_INTERVAL_SECONDS
  • INCLUDE_OPENAI
  • INCLUDE_ANTHROPIC
  • FRAME_ANCESTORS
  • PUBLIC_BASE_PATH
  • MAX_SLEEP_PER_SCAN Safety guardrails for production scans. The scanner will never sleep more than MAX_SLEEP_PER_SCAN accounts per platform per scan, and will…
  • MIN_REMAINING_OPENAI_ACCOUNTS
  • MIN_REMAINING_ANTHROPIC_ACCOUNTS
  • REFRESH_SUB2API_SCHEDULER Sub2API scheduler refresh. The plugin connects to Redis from inside the Docker network and clears the group/platform scheduler keys plus…
  • SUB2API_OPENAI_GROUP_ID
  • SUB2API_REDIS_HOST
  • SUB2API_REDIS_PORT
  • VERIFY_AFTER_SLEEP Optional post-scan verification. Leave VERIFY_API_KEY empty unless you want the plugin to call the Sub2API OpenAI-compatible endpoint and…
  • VERIFY_MODEL
  • VERIFY_API_URL
Best match Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/lwhfxmoss/sub2api-oauth-sleeper-plugin
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/lwhfxmoss/sub2api-oauth-sleeper-plugin
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/lwhfxmoss/sub2api-oauth-sleeper-plugin
Or deploy to a different host
← Try another repo