File: CGI_method_to_pullrefresh.mdwn

package info (click to toggle)
ikiwiki 3.20190228-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,904 kB
  • sloc: perl: 31,100; python: 428; sh: 185; makefile: 120
file content (7 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
[[!meta title="CGI method to pull/refresh"]]

In some situations, it makes sense to have the repository in use by ikiwiki reside on a different machine. In that case, one could juggle SSH keys for the `post-update` hook. A better way may be to provide a different `do` parameter handler for the CGI, which would pull new commits to the working clone and refresh the wiki. Then, the remote `post-update` hook could just `wget` that URL. To prevent simple DoS attacks, one might assign a simple password.

[[!tag wishlist]]

> [[done]] via the pinger and pingee plugins --[[Joey]]