Expand description
juiceback โ the brains behind Juicebox.
This is where uploads come in (multipart or TUS), file records get saved to SQLite, admins log in, and everything gets pushed over to juicehost for storage. If you turn on the quic feature it also listens on a second port for HTTP/3, reusing the same router.
Modulesยง
- auth ๐
- Authentication: Argon2 password hashing and JWT tokens.
- config ๐
- Config loaded from environment variables.
- db ๐
- SQLite database stuff โ schema, migrations, and CRUD for files and admins.
- error ๐
- Error types that map to HTTP responses.
- jobs ๐
- juicehost ๐
- Communication with the
juicehoststorage backend. - quic ๐
- QUIC/HTTP/3 server and client for juiceback.
- routes ๐
- Glues every HTTP handler together into one router with middleware.
- state ๐
- The shared state every request handler can access.
- tus ๐
- In-memory state for TUS resumable uploads.
Staticsยง
- GLOBAL ๐
Functionsยง
- main ๐
- shutdown_
signal ๐