Crate juiceback

Crate juiceback 

Source
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 juicehost storage 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 ๐Ÿ”’