hg.sr.ht is the hg repository hosting service for the sr.ht network.
hg.sr.ht is a standard sr.ht web service and can be installed through the standard procedure. However, there are several additional steps required.
You will need to set up a directory for repositories to be stored in - we
/var/lib/hg/. Also configure a
hg user and assign ownership over
/var/lib/hg/ to this user. The hg.sr.ht package will automatically prepare
these for you. If you do not use the package, you must create the user yourself
and ensure that the hg.sr.ht web application runs as this user.
At the moment, hg.sr.ht uses git.sr.ht's SSH dispatcher, which you need to setup as the system-wide SSH authorization hook. See the git.sr.ht documentation for more information.
Once this is done, you need to make the hg.sr.ht authorization hook be part of
the SSH dispatching, via the
hgsrht-shell scripts. See the
[dispatch] section of you hg.sr.ht configuration for details on how this
Authorization logs are written to
You must also configure
hgsrht-periodic to run periodically with your
favorite cron daemon. We recommend the following crontab:
*/20 * * * * hgsrht-periodic