Files
CCC/README.md
T
Markk116 cb9487fc8a License under AGPL-3.0-only
Ensures anyone running a modified version of C3 as a network service
has to share their changes back, not just users who redistribute the
binary.

- LICENSE: full AGPLv3 text with copyright notice filled in
- Cargo.toml: license = "AGPL-3.0-only"
- README: brief license section
2026-08-08 16:36:22 +02:00

36 lines
915 B
Markdown

# C3 - Cached Content Conduit
My super simple CDN built for distributing my own (text) content.
## Running in Docker
```
docker compose up -d
```
The runtime image is `distroless` (no shell, no package manager, ~24MB),
so managing packages happens via `docker exec` running the `ccc` binary
directly rather than an interactive shell:
```
docker compose exec ccc /usr/local/bin/ccc create demo
```
To add a file, it needs to exist inside the container first. Drop it in
the `./staging` dir, which is bind-mounted to `/staging`:
```
cp app.js staging/
docker compose exec ccc /usr/local/bin/ccc add demo /staging/app.js 1.0.0
```
(Alternatively `docker cp` a file straight into the container if you'd
rather not use the staging mount.)
## License
AGPL-3.0-only - see [LICENSE](LICENSE). If you run a modified version
of this as a network service, you must make the modified source
available to its users.