greenpau / caddy-git

Git Plugin for Caddy v2
Apache License 2.0
70 stars 13 forks source link

feature: add support for ssh key authentication #6

Closed greenpau closed 2 years ago

greenpau commented 2 years ago

A clear and concise description of what you want the system to do.

Add support for ssh key authentication.

Github docs: https://docs.github.com/en/authentication/connecting-to-github-with-ssh

What are the Caddyfile directives that need to be added.

Add Caddyfile directive:

git {
  repo foo {
    url git@github.com:greenpau/caddy-git.git
    auth key <path> [passphrase <secret>]
  }
}
greenpau commented 2 years ago

Added caddyfile directives in https://github.com/greenpau/caddy-git/commit/3918564dd84599c85f160bfa7dfa4c66260e699e