Mirror of HackMD with some custom changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
4.4KB

  1. {
  2. "test": {
  3. "db": {
  4. "dialect": "sqlite",
  5. "storage": ":memory:"
  6. }
  7. },
  8. "development": {
  9. "loglevel": "debug",
  10. "hsts": {
  11. "enable": false
  12. },
  13. "db": {
  14. "dialect": "sqlite",
  15. "storage": "./db.codimd.sqlite"
  16. }
  17. },
  18. "production": {
  19. "domain": "localhost",
  20. "loglevel": "info",
  21. "hsts": {
  22. "enable": true,
  23. "maxAgeSeconds": 31536000,
  24. "includeSubdomains": true,
  25. "preload": true
  26. },
  27. "csp": {
  28. "enable": true,
  29. "directives": {
  30. },
  31. "upgradeInsecureRequests": "auto",
  32. "addDefaults": true,
  33. "addDisqus": true,
  34. "addGoogleAnalytics": true
  35. },
  36. "db": {
  37. "username": "",
  38. "password": "",
  39. "database": "codimd",
  40. "host": "localhost",
  41. "port": "5432",
  42. "dialect": "postgres"
  43. },
  44. "facebook": {
  45. "clientID": "change this",
  46. "clientSecret": "change this"
  47. },
  48. "twitter": {
  49. "consumerKey": "change this",
  50. "consumerSecret": "change this"
  51. },
  52. "github": {
  53. "clientID": "change this",
  54. "clientSecret": "change this"
  55. },
  56. "gitlab": {
  57. "baseURL": "change this",
  58. "clientID": "change this",
  59. "clientSecret": "change this",
  60. "scope": "use 'read_user' scope for auth user only or remove this property if you need gitlab snippet import/export support (will result to be default scope 'api')",
  61. "version": "use 'v4' if gitlab version > 11, 'v3' otherwise. Default to 'v4'"
  62. },
  63. "mattermost": {
  64. "baseURL": "change this",
  65. "clientID": "change this",
  66. "clientSecret": "change this"
  67. },
  68. "dropbox": {
  69. "clientID": "change this",
  70. "clientSecret": "change this",
  71. "appKey": "change this"
  72. },
  73. "google": {
  74. "clientID": "change this",
  75. "clientSecret": "change this",
  76. "apiKey": "change this"
  77. },
  78. "ldap": {
  79. "url": "ldap://change_this",
  80. "bindDn": null,
  81. "bindCredentials": null,
  82. "searchBase": "change this",
  83. "searchFilter": "change this",
  84. "searchAttributes": ["change this"],
  85. "usernameField": "change this e.g. cn",
  86. "useridField": "change this e.g. uid",
  87. "tlsOptions": {
  88. "changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback"
  89. }
  90. },
  91. "saml": {
  92. "idpSsoUrl": "change: authentication endpoint of IdP",
  93. "idpCert": "change: certificate file path of IdP in PEM format",
  94. "issuer": "change or delete: identity of the service provider (default: serverurl)",
  95. "identifierFormat": "change or delete: name identifier format (default: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress')",
  96. "disableRequestedAuthnContext": "change or delete: true to allow any authentication method, false restricts to password authentication method (default: false)",
  97. "groupAttribute": "change or delete: attribute name for group list (ex: memberOf)",
  98. "requiredGroups": [ "change or delete: group names that allowed" ],
  99. "externalGroups": [ "change or delete: group names that not allowed" ],
  100. "attribute": {
  101. "id": "change or delete this: attribute map for `id` (default: NameID)",
  102. "username": "change or delete this: attribute map for `username` (default: NameID)",
  103. "email": "change or delete this: attribute map for `email` (default: NameID)"
  104. }
  105. },
  106. "imgur": {
  107. "clientID": "change this"
  108. },
  109. "minio": {
  110. "accessKey": "change this",
  111. "secretKey": "change this",
  112. "endPoint": "change this",
  113. "secure": true,
  114. "port": 9000
  115. },
  116. "s3": {
  117. "accessKeyId": "change this",
  118. "secretAccessKey": "change this",
  119. "region": "change this"
  120. },
  121. "s3bucket": "change this",
  122. "azure":
  123. {
  124. "connectionString": "change this",
  125. "container": "change this"
  126. }
  127. }
  128. }