cdn

Crates.iocdn
lib.rscdn
version
sourcesrc
created_at2024-10-14 09:14:07.08283
updated_at2024-10-25 03:47:13.897272
descriptionServe Static like CDN LOL
homepagehttps://x.com/papanberjalan
repositoryhttps://github.com/mashanz/cdn
max_upload_size
id1408108
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Hanjara Adhyatma ( Mashanz ) (mashanz)

documentation

README

Serve folder like CDN

Installation

cargo install cdn

Run

cdn
# Static will be served at 0.0.0.0:8080

Using it with docker

Docker is based on distroless/cc-debian12

FROM ghcr.io/mashanz/cdn:latest AS runner
WORKDIR /static
COPY . .
ENTRYPOINT ["cdn"]
Commit count: 12

cargo fmt