https://github.com/kindlychung/simplehttp-rs
new repo
https://github.com/kindlychung/simplehttp-rs
Last synced: 23 days ago
JSON representation
new repo
- Host: GitHub
- URL: https://github.com/kindlychung/simplehttp-rs
- Owner: kindlychung
- Created: 2024-12-25T22:09:21.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-12-25T23:25:29.000Z (5 months ago)
- Last Synced: 2025-02-17T10:11:17.041Z (4 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Simple http server in rust
This is a simple http server which return a "hello world" on a given route.
The route can be defined with env var `HTTP_ROUTE_PREFIX`.For example, you could set `HTTP_ROUTE_PREFIX=/simplehttp`, and because the server is listening on `0.0.0.0:3000`,
you would be able to visit and get a "hello world" back.## Build docker image for x64
See the `docker-build.yaml` github workflow.
## Build docker image for arm64
See the `build_arm64.bash` script.
## Run with docker
```bash
docker run --name simplehttp-rs --rm -p 3000:3000 kevinmidtown/simplehttp-rs:arm64
```## Usage docker images
* for x64: ghcr.io/kindlychung/simplehttp-rs:latest
* for arm64: kevinmidtown/simplehttp-rs:arm64