diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-14 16:47:54 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-14 16:47:54 -0400 |
commit | 534892162f20a615fc385a8cc5e691ef0daa2f98 (patch) | |
tree | 106b49995f120c200e3403682be78e60ca0160e9 | |
parent | 4eeddf1effe62816c0da97dc1351e07aab7d7a37 (diff) | |
download | sr.ht-docs-534892162f20a615fc385a8cc5e691ef0daa2f98.tar.gz |
Add http(s) clone details for hg.sr.ht install
-rw-r--r-- | hg.sr.ht/installation.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/hg.sr.ht/installation.md b/hg.sr.ht/installation.md index 23a58eb..64964a8 100644 --- a/hg.sr.ht/installation.md +++ b/hg.sr.ht/installation.md @@ -34,3 +34,21 @@ favorite cron daemon. We recommend the following crontab: */20 * * * * hgsrht-periodic +## HTTP(s) Cloning + +hg.sr.ht does not do this for you - you need to wire it up in nginx. Here's an +example config: + +```nginx +location = /authorize { + proxy_pass http://127.0.0.1:5001; + proxy_pass_request_body off; + proxy_set_header Content-Length ""; + proxy_set_header X-Original-URI $request_uri; +} + +location ~ ^/[~^][a-z0-9_]+/[a-zA-Z0-9_.-]+/\.hg.*$ { + auth_request /authorize; + root /var/lib/mercurial; +} +``` |