gitoria
All repositories: gitoria
358 B
#!/bin/sh# sshd AuthorizedKeysCommand: `gitoria-keys <key type> <base64 key>` → the authorized_keys line of a key the app knows, else nothing.[ -n "$1" ] && [ -n "$2" ] || exit 0exec curl -sS --max-time 10 -G -H "X-Gitoria-Secret: $(cat /run/gitoria-secret)" \--data-urlencode "type=$1" --data-urlencode "key=$2" "$(cat /run/gitoria-url)/__git/keys"
Branches
- mainmain branch