https://github.com/gin-gonic/gin
This app implements the following endpoints:
/ - returns html page with the commit message
/p/:sha - permanent link to a html commit message based on short sha256 hash
/json - returns message in json format { "message" : "wip" }
/commit.txt - returns plain text message
/healthz - returns 200 and "OK"
/robots.txt - returns generic robots.txt
The following environment variables can be set:
GIN_MODE=[debug,release]
DOMAIN=localhost
TLS=true - enables TLS (setting DOMAIN required)
docker-compose up
Add more tests
Inspired by https://github.com/ngerakines/commitment