Serves raw files from gitlab, with correct MIME types.
export GITLAB_API=https://gitlab.com/api/v4
export PORT=8888
./rawlab
or with docker:
docker run --rm -p 8625:8625 -e GITLAB_API=https://gitlab.com/api/v4 quay.io/oott123/rawlab:master
GET /username/repo@branch/path/to/file.ext HTTP/1.1
GET /username/repo@branch/path/to/file.ext HTTP/1.1
Authorization: Bearer glpat-***************
GET /username/repo@branch/path/to/file.ext?token=glpat-*************** HTTP/1.1
- to serve deno packages
- to serve simple static web sites
- this will serve HTML files as text/html, be sure to trust your users!