Serves a markdown git repo as HTML using Git-Caddy.
Still work in progress.
Build and run with podman
podman build . -t caddy-serve-md-git
podman run -it --rm -p 8080:8080 -e GIT_REPO_URL=https://github.com/johbar/caddy-serve-md-git.git localhost/caddy-serve-md-git:latest
Change env GIT_REPO_URL
accordingly.
More env to customize behavior:
Name | Description |
---|---|
GIT_BRANCH | Git-Ref to clone (default: main ) |
UPDATE_SECONDS | Interval of automatic update (default: 600 ) |
DEBUG | Set to debug for extensive logging |
AUTHENTICATION | set to auth username {$USERNAME} password {PASSWORD} to enable basic auth |
- caddy-markdown-site
- More CSS options
- Also inspired by how Caddy serves their website