首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在etherpad lite中应用身份验证

在etherpad lite中应用身份验证
EN

Stack Overflow用户
提问于 2012-09-13 14:11:31
回答 1查看 12.1K关注 0票数 6

我们如何防止etherpad lite pad被公共访问。我们有没有办法防止未经授权的访问以太垫。只有拥有用户名和密码的用户才能访问pads。

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-02-13 17:18:48

你必须在你的以太网板的settings.json中配置它。原始配置有很好的文档记录。

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

代码语言:javascript
复制
  /* 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
    }
  },
  */
票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12400383

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档