e0d1f263ddb1a31eeaa5475d90879f847b37d246
All checks were successful
Build & Publish / build_publish (push) Successful in 1m30s
fix: enhance logging structure by adding missing log event types and improving error handling in API
Black Hole Share
A lightweight, ephemeral file sharing service built with Rust and Actix-Web. Upload images or text with a configurable TTL (1-60 minutes) and share via a unique link. Content is automatically purged after expiration.
Usage
Run locally
cargo run --release
Server starts at http://0.0.0.0:8080 by default.
Run with Docker
docker-compose up --build
Exposes port 8080 mapped to container port 80. Volume mounts ./data:/data.
Configuration
| Environment Variable | Default | Description |
|---|---|---|
BIND_ADDR |
0.0.0.0 |
Address to bind |
BIND_PORT |
8080 |
Port to bind |
Web
GET /- Upload pageGET /stats- Stats dashboardGET /bhs/{id}- View shared content
API
POST /api/uploadwith JSON{ duration, content_type, content }GET /api/content/{id}GET /api/stats
Languages
HTML
43.7%
Rust
35.5%
CSS
19.8%
Dockerfile
1%