Skip to content

Instantly share code, notes, and snippets.

@Fonger
Created July 23, 2018 19:00
Show Gist options
  • Save Fonger/0c768ae79a1b26efb55a5aee80174eae to your computer and use it in GitHub Desktop.
Save Fonger/0c768ae79a1b26efb55a5aee80174eae to your computer and use it in GitHub Desktop.
{
"_id": "5b41b1224f963f29008b8407",
"name": "Fonger",
"username": "fonger",
"password": "$2b$10$aDVxKb.nWwyW/V1kbIfypOP83yltwmkeuO7DvIadJZ60fxGsDHogO",
"labs": [
{
"id": "testdb",
"description": "測試用",
"apiKey": "8f65263ad306bc0e0d765e3dff69fb43",
"beakers": [
{
"id": "beaker1",
"rules": {
"list": "request.user != null",
"get": "request.user != null",
"update": "request.user != null",
"create": "request.user != null",
"delete": "request.user != null"
}
},
{
"id": "beaker2",
"rules": {
"list": "true",
"get": "true",
"update": "true",
"create": "true",
"delete": "true"
}
}
],
"allowOrigins": [
"http://localhost:8080",
"http://localhost:9966",
"https://mywebsite.com"
],
"auth": {
"email": {
"enabled": true,
"smtp": {
"custom": true,
"host": "smtp.ethereal.email",
"port": 587,
"secure": false,
"auth": {
"user": "12345678@ethereal.email",
"pass": "12345678"
},
"tls": {
"rejectUnauthorized": false
}
},
"sender": "noreply@dummy.com",
"template": {
"verify": {
"subject": "Please verify your email",
"content": "hello this is your link {{VERIFY_LINK}}"
},
"reset": {
"subject": "Reset password request",
"content": "hello to reset your password {{RESET_LINK}}"
},
"update": {
"subject": "Update email request",
"content": "hello to update your email {{UPDATE_LINK}}"
}
}
},
"ldap": {
"enabled": false,
"url": "ldaps://ldap.example.com",
"searchBase": "ou=People,dc=example,dc=com",
"searchFilter": "(uid={{username}})",
"groupSearchBase": "ou=Group,dc=example,dc=com",
"groupSearchFilter": "(|(&(cn=*)(memberUid={{user.uid}}))(&(cn=*)(gidNumber={{user.gidNumber}})))",
"tlsOptions": {
"rejectUnauthorized": false
},
"cache": false
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment