diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-03-26 10:21:05 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-26 10:21:05 -0400 |
commit | e62d312b36d5816b6ccfe7e23d04bf55d9425d38 (patch) | |
tree | 2199e1ccf8c4a49240d726f3d72067242a5f360d /hg.sr.ht | |
parent | ef4f23fae41c927a529352a5e9f31a4d9b7346d9 (diff) | |
download | sr.ht-docs-e62d312b36d5816b6ccfe7e23d04bf55d9425d38.tar.gz |
Overhaul installation documentation
Diffstat (limited to 'hg.sr.ht')
-rw-r--r-- | hg.sr.ht/installation.md | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/hg.sr.ht/installation.md b/hg.sr.ht/installation.md index a8ac218..113e926 100644 --- a/hg.sr.ht/installation.md +++ b/hg.sr.ht/installation.md @@ -10,6 +10,23 @@ hg.sr.ht is a standard sr.ht web service and can be installed through the [standard procedure](/installation.md). However, there are several additional steps required. +## Daemons + +- `hg.sr.ht`: the web service + +## Cronjobs + +- `hgsrht-periodic`: various maintenance tasks. Recommended configuration is + `*/20 * * * * hgsrht-periodic` +- `hgsrht-clonebundles`: optional cronjob to generate [clone + bundles][clonebundles]. Recommended to run daily, e.g. + `0 * * * * hgsrht-clonebundles` + +[clonebundles]: https://www.mercurial-scm.org/wiki/ClonebundlesExtension + +Clone bundles are computationally expensive to create, and use up more disk +space, but may dramatically speed up clone operations on large repositories. + ## Repository storage You will need to set up a directory for repositories to be stored in - we @@ -31,20 +48,6 @@ works. Authorization logs are written to `hg-srht-shell`. -## Cronjobs - -You must also configure `hgsrht-periodic` to run periodically with your -favorite cron daemon. We recommend the following crontab: - - */20 * * * * hgsrht-periodic - -If you'd like to generate -[clonebundles](https://www.mercurial-scm.org/wiki/ClonebundlesExtension) (which -require more disk space but dramatically speed up cloning large repositories), -also add a nightly task for running the script: - - 0 * * * * hgsrht-clonebundles - ## HTTP(s) Cloning hg.sr.ht does not do this for you - you need to wire it up in nginx. Here's an |