Mercurial:阻止 Web 访问的 Acl 扩展示例

发布于 2024-08-23 04:15:47 字数 128 浏览 2 评论 0原文

我可以看到如何使用 Acl 扩展来控制某些用户对特定存储库的推/拉,但是您可以使用 Acl 扩展来控制对存储库的“WEB”访问吗?我希望某些存储库仅对某些用户显示。

我正在 IIS7 上部署,因此该解决方案需要在该环境中运行。

I can see how you can use the Acl Extension to control the push/pull to a particular repository by certian users, but can you control "WEB" access to a repository using the Acl Extenstion? I would like certain repositories to only show up for certain users.

I am deploying on IIS7, so the solution will need to work in that environment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜声 2024-08-30 04:15:47

我假设您是通过 HGWeb CGI 脚本执行此操作。如果是,您可以在每个项目的 .hg/hgrc 文件中指定 allow_pushallow_read 参数。如果您指定 * 以外的 allow_read,不在列表中的用户甚至不会在 HGWeb 项目列表页面上看到该项目。

I'm assuming you're doing this via the HGWeb CGI script. If you are, you can specify allow_push and allow_read parameters in each project's .hg/hgrc file. If you specify an allow_read other than *, users who are not in the list will not even see the project on the HGWeb project listing page.

蝶…霜飞 2024-08-30 04:15:47

只需使用正常的 .htaccess 类似功能来限制可访问的存储库。 hg 大多数情况下不关心身份验证,并将其留给网络服务器。

Just use normal .htaccess like fonctionnality to restrict which repo are accessible. hg mostly doesn't care about auth and leaves that to the web server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文