mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
02e9927714
Limitations as of this commit: - tlsOptions can only be specified in config.json, not as env vars - authentication failures are not yet gracefully handled by the UI - instead the error message is shown on a blank page (/auth/ldap) - no email address is associated with the LDAP user's account - no picture/profile URL is associated with the LDAP user's account - we might have to generate our own access + refresh tokens, because we aren't using oauth. The currently generated tokens are just a placeholder. - 'LDAP Sign in' needs to be translated to each locale
64 lines
1.7 KiB
Text
64 lines
1.7 KiB
Text
{
|
|
"development": {
|
|
"domain": "localhost",
|
|
"db": {
|
|
"username": "",
|
|
"password": "",
|
|
"database": "hackmd",
|
|
"host": "localhost",
|
|
"port": "3306",
|
|
"dialect": "mysql"
|
|
}
|
|
},
|
|
"production": {
|
|
"domain": "localhost",
|
|
"db": {
|
|
"username": "",
|
|
"password": "",
|
|
"database": "hackmd",
|
|
"host": "localhost",
|
|
"port": "5432",
|
|
"dialect": "postgres"
|
|
},
|
|
"facebook": {
|
|
"clientID": "change this",
|
|
"clientSecret": "change this"
|
|
},
|
|
"twitter": {
|
|
"consumerKey": "change this",
|
|
"consumerSecret": "change this"
|
|
},
|
|
"github": {
|
|
"clientID": "change this",
|
|
"clientSecret": "change this"
|
|
},
|
|
"gitlab": {
|
|
"baseURL": "change this",
|
|
"clientID": "change this",
|
|
"clientSecret": "change this"
|
|
},
|
|
"dropbox": {
|
|
"clientID": "change this",
|
|
"clientSecret": "change this"
|
|
},
|
|
"google": {
|
|
"clientID": "change this",
|
|
"clientSecret": "change this"
|
|
},
|
|
"ldap": {
|
|
"url": "ldap://change_this",
|
|
"bindDn": null,
|
|
"bindCredentials": null,
|
|
"tokenSecret": "change this",
|
|
"searchBase": "change this",
|
|
"searchFilter": "change this",
|
|
"searchAttributes": "change this",
|
|
"tlsOptions": {
|
|
"changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback"
|
|
}
|
|
},
|
|
"imgur": {
|
|
"clientID": "change this"
|
|
}
|
|
}
|
|
}
|