Go to file
setop e69771b09f first implementation 2024-11-28 02:45:01 +01:00
.tool-versions first implementation 2024-11-28 02:45:01 +01:00
Dockerfile first implementation 2024-11-28 02:45:01 +01:00
README.md first implementation 2024-11-28 02:45:01 +01:00
cmd.txt first implementation 2024-11-28 02:45:01 +01:00
main.go first implementation 2024-11-28 02:45:01 +01:00

README.md

Purpose

This tool allows to serve static files of a git repo hosted on a gitea instance

Files to be served must be published in a branch named "pages" and in a folder named "public"

Usage

standalone

set GITDOMAIN environment variable, then run go run main.go 8081

Docker

Build image using docker and run a container, setting GITDOMAIN environment variable

Limitations

  • serve only public repo
  • only relative links are supported

Further

  • perform security audit
  • find a way to serve private repo content
  • propose a standard gitea action to publish content
  • custom domains