gpt4 book ai didi

authentication - 在 etherpad lite 中应用身份验证

转载 作者:行者123 更新时间:2023-12-04 14:47:40 24 4
gpt4 key购买 nike

我们如何防止etherpad lite pads被公众访问。有什么办法可以防止对etherpads的未经授权的访问。只有拥有用户名和密码的用户才能访问键盘。

我在 Windows 上使用 etherpad lite。
谢谢。

最佳答案

您必须在 etherpad 的 settings.json 中进行配置。原始配置有据可查。

这是您应该注意的配置部分。

  /* Users must have a session to access pads. This effectively allows only group pads to be accessed. */
"requireSession" : true,

/* Users may edit pads but not create new ones. Pad creation is only via the API. This applies both to group pads and regular pads. */
"editOnly" : false,

/* How long may clients use served javascript code (in seconds)? Without versioning this
may cause problems during deployment. Set to 0 to disable caching */
"maxAge" : 21600, // 60 * 60 * 6 = 6 hours

/* This is the path to the Abiword executable. Setting it to null, disables abiword.
Abiword is needed to advanced import/export features of pads*/
"abiword" : null,

/* This setting is used if you require authentication of all users.
Note: /admin always requires authentication. */
"requireAuthentication": true,

/* Require authorization by a module, or a user with is_admin set, see below. */
"requireAuthorization": true,

/* Users for basic authentication. is_admin = true gives access to /admin.
If you do not uncomment this, /admin will not be available! */
/*
"users": {
"admin": {
"password": "changeme1",
"is_admin": true
},
"user": {
"password": "changeme1",
"is_admin": false
}
},
*/

关于authentication - 在 etherpad lite 中应用身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12400383/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com