Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.92 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.92 KB

Kusatoko

GitHub License GitHub top language GitHub commit activity GHCR Downloads GHCR Image Size

A simple go server for testing connection stuff.

Run

With docker

docker pull ghcr.io/nicolaiort/kusatoko
docker run -p 8080:8080 ghcr.io/nicolaiort/kusatoko

With go for dev 🛠️

go run main.go

Endpoints

Endpoint Description
/ Returns a simple text message
/healthz Returns ok
/whatsmyip Returns the requesting client's IP
/headers Returns all request headers
/status/{code} Returns the status code provided via {code} and it's associated message

Config

ENV-Var Default Description
PORT 8080 The server's listening port
ROOT_MESSAGE "Hello, World!" The text displayed on /