Update README.md

This commit is contained in:
lookshe 2016-09-26 15:46:45 +02:00
parent 39276c807a
commit a006288d58

View file

@ -92,11 +92,11 @@ Now, if you visit `https://example.com/git-mirror/webhook.py` (replace with
your URL), the script should run and tell you `Repository missing or not
found.`.
The next step is to add this as a webhook to the GitHub repository you want to
sync with, to create a fresh SSH key and configure it as deployment key for the
repository, and to configure git-mirror accordingly. For additional security,
one should also configure a shared HMAC secret, such that the webhook can verify
that the data indeed comes from GitHub.
The next step is to add this as a webhook (add ?repository=repo-name at the end!)
to the GitHub repository you want to sync with, to create a fresh SSH key and
configure it as deployment key for the repository, and to configure git-mirror
accordingly. For additional security, one should also configure a shared HMAC
secret, such that the webhook can verify that the data indeed comes from GitHub.
To make your job easier, there is a script `github-add-hooks.py` that can do
all this for you. It assumes that the repository exists on the GitHub side, but