Ah hi all. I just converted to Nginx from Lighttpd. Originally my Mercurial repositories were using mod_wsgi with Lighttpd (pull for all users, and push needed authorization based on htpasswd).
Now I have just switched to Nginx with mod_wsgi, finding it a lot faster than the previous, so I'm sticking to Nginx here.
The bottom code excerpt from http://mercurial.selenic.com/wiki/HgWebDirStepByStep#Configuring_Lighttpd_push_support was to search the querystring for unbundle and makes it require authentication for that. How do I convert the following to Nginx. Thanks
[code]
$HTTP["querystring"] =~ "cmd=unbundle" {
auth.require = ( "" => (
"method" => "basic",
"realm" => "Mercuial Repo",
"require" => "valid-user"
)
)
}
[/code]
Regards and Thanks, Yumi Nanako