2012-09-13 25 views
5

Làm thế nào chúng ta có thể ngăn chặn miếng đệm lite etherpad được truy cập bởi công chúng. Có cách nào mà chúng ta có thể ngăn chặn truy cập trái phép vào các etherpad. Chỉ những người dùng có tên người dùng và mật khẩu mới có quyền truy cập vào các miếng đệm.Áp dụng xác thực trong etherpad lite

Tôi đang sử dụng lite etherpad trên cửa sổ. Cảm ơn.

Trả lời

5

Bạn phải định cấu hình cài đặt này trong settings.json của etherpad. Cấu hình ban đầu cũng được ghi lại.

Đây là một phần cấu hình bạn cần quan tâm.

/* 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 
    } 
    }, 
    */ 
+0

Vì vậy, nếu tôi đặt '" requireAuthentication ": true', tôi có thể chia sẻ pad của mình không? –