Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document click-ops infrastructure #1

Open
guregu opened this issue Jun 20, 2023 · 0 comments
Open

Document click-ops infrastructure #1

guregu opened this issue Jun 20, 2023 · 0 comments

Comments

@guregu
Copy link
Owner

guregu commented Jun 20, 2023

Here's a rough idea...

Things that you need:

  • B2 buckets
    • one for unprocessed uploads (intertube-upload)
    • one for processed tracks (directories split by user)
  • AWS account for the Lambdas
  • Cloudflare account for the Workers
  • DynamoDB tables

Lambdas

  • tube-web (env var MODE = WEB)
    • HTTP server (API gateway)
  • tube-trigger (MODE = CHANGE)
    • DynamoDB Streams trigger on Tracks table
  • tube-refresh (MODE = REFRESH)
    • Refreshes B2 API token and stores in Cloudflare KV

Workers

  • workers/dl.js - file downloader
  • workers/auth.js - maybe unused?

DynamoDB tables

  • Tracks
  • Sessions
  • Users
  • Files

I think this could be greatly simplified for self-hosting

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

No branches or pull requests

1 participant