https://github.com/jakechampion/compute-file-server
https://github.com/jakechampion/compute-file-server
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jakechampion/compute-file-server
- Owner: JakeChampion
- Created: 2022-10-11T01:55:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T16:46:57.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T19:40:25.011Z (10 months ago)
- Language: Rust
- Size: 10.5 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compute-file-server
Compute File Server uploads files to Fastly for serving directly from within Fastly Compute applications.
Upload any type of file: images, text, video etc and serve directly from Fastly.
It is ideal for serving files built from a static site generator such as 11ty.
Serve the files from your Compute application.
## Usage
- You will need to install the CLI application used to upload files to Fastly. `cargo install compute-file-server-cli`
- Upload the files `compute-file-server upload --name 'my-site' --token "$(fastly profile token)" -- my-folder-of-files/`
- Create your Fastly Compute application. We have examples for [Rust](./examples/rust/) and [JavaScript](./examples/javascript/).
- Copy your Fastly Compute service_id from the `fastly.toml` file
- Link the files to your Fastly Compute application. `compute-file-server link --name my-site --link-name site --service-id "your-service_id" --token "$(fastly profile token)"`
- You are done!