Browse Source

Merge branch 'master' of https://github.com/hackmdio/codimd into DepauMD

origin/DepauMD
Davide Depau 3 years ago
parent
commit
3cf3e7c6da
78 changed files with 2002 additions and 1827 deletions
  1. +14
    -0
      .mailmap
  2. +18
    -18
      CONTRIBUTING.md
  3. +0
    -902
      CONTRIBUTORS
  4. +132
    -102
      README.md
  5. +16
    -21
      app.js
  6. +3
    -3
      app.json
  7. +3
    -4
      bin/setup
  8. +2
    -2
      config.json.example
  9. +2
    -0
      docs/guides/auth/github.md
  10. +2
    -0
      docs/guides/auth/gitlab-self-hosted.md
  11. +2
    -0
      docs/guides/auth/saml-onelogin.md
  12. +2
    -0
      docs/guides/auth/saml.md
  13. +2
    -0
      docs/guides/auth/twitter.md
  14. +3
    -1
      docs/guides/minio-image-upload.md
  15. +17
    -0
      docs/guides/providing-terms.md
  16. +3
    -1
      docs/guides/s3-image-upload.md
  17. +5
    -1
      lib/config/default.js
  18. +88
    -85
      lib/config/environment.js
  19. +124
    -0
      lib/config/hackmdEnvironment.js
  20. +10
    -2
      lib/config/index.js
  21. +2
    -2
      lib/csp.js
  22. +14
    -1
      lib/history.js
  23. +14
    -2
      lib/letter-avatars.js
  24. +13
    -0
      lib/migrations/20180525153000-user-add-delete-token.js
  25. +6
    -2
      lib/models/author.js
  26. +9
    -3
      lib/models/note.js
  27. +3
    -1
      lib/models/revision.js
  28. +12
    -25
      lib/models/user.js
  29. +7
    -5
      lib/realtime.js
  30. +37
    -10
      lib/response.js
  31. +1
    -1
      lib/web/auth/ldap/index.js
  32. +1
    -1
      lib/web/imageRouter/filesystem.js
  33. +1
    -1
      lib/web/imageRouter/index.js
  34. +10
    -0
      lib/web/middleware/codiMDVersion.js
  35. +18
    -1
      lib/web/statusRouter.js
  36. +84
    -0
      lib/web/userRouter.js
  37. +114
    -108
      locales/de.json
  38. +7
    -1
      locales/en.json
  39. +114
    -103
      locales/it.json
  40. +114
    -103
      locales/ja.json
  41. +0
    -1
      locales/zh.json
  42. +18
    -17
      package.json
  43. +0
    -0
      public/codimd-icon-1024.png
  44. +4
    -0
      public/css/extra.css
  45. +28
    -1
      public/css/index.css
  46. +4
    -0
      public/css/markdown.css
  47. +4
    -4
      public/docs/features.md
  48. +17
    -0
      public/docs/privacy.md.example
  49. +48
    -0
      public/docs/release-notes.md
  50. +8
    -0
      public/docs/slide-example.md
  51. +3
    -3
      public/docs/yaml-metadata.md
  52. +31
    -27
      public/js/cover.js
  53. +2
    -2
      public/js/extra.js
  54. +20
    -59
      public/js/history.js
  55. +8
    -1
      public/js/index.js
  56. +1
    -1
      public/js/lib/config/index.js
  57. +83
    -0
      public/js/lib/editor/index.js
  58. +48
    -0
      public/js/lib/editor/toolbar.html
  59. +93
    -20
      public/js/lib/editor/utils.js
  60. +1
    -0
      public/js/slide.js
  61. +66
    -46
      public/vendor/md-toc.js
  62. +15
    -0
      public/views/codimd.ejs
  63. +1
    -1
      public/views/codimd/body.ejs
  64. +1
    -1
      public/views/codimd/foot.ejs
  65. +0
    -0
      public/views/codimd/footer.ejs
  66. +2
    -2
      public/views/codimd/head.ejs
  67. +0
    -0
      public/views/codimd/header.ejs
  68. +4
    -4
      public/views/error.ejs
  69. +0
    -15
      public/views/hackmd.ejs
  70. +2
    -2
      public/views/html.hbs
  71. +1
    -1
      public/views/includes/scripts.ejs
  72. +32
    -11
      public/views/index/body.ejs
  73. +1
    -1
      public/views/index/head.ejs
  74. +3
    -3
      public/views/pretty.ejs
  75. +2
    -2
      public/views/shared/help-modal.ejs
  76. +4
    -5
      public/views/slide.ejs
  77. +3
    -3
      webpackBaseConfig.js
  78. +415
    -82
      yarn.lock

+ 14
- 0
.mailmap View File

@ -0,0 +1,14 @@
Max Wu <jackymaxj@gmail.com> Wu Cheng-Han <jacky_cute0808@hotmail.com>
Max Wu <jackymaxj@gmail.com> Cheng-Han, Wu <jackymaxj@gmail.com>
Max Wu <jackymaxj@gmail.com> jackycute <jackymaxj@gmail.com>
Max Wu <jackymaxj@gmail.com> Wu, Cheng-Han <jackymaxj@gmail.com>
Max Wu <jackymaxj@gmail.com> jackycute <jacky_cute0808@hotmail.com>
Sheogorath <sheogorath@shivering-isles.com> Christoph (Sheogorath) Kern <sheogorath@shivering-isles.com>
Raccoon <raccoon@hackmd.io> Raccoon Li <a60814billy@gmail.com>
Raccoon <raccoon@hackmd.io> Raccoon <a60814billy@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org> Peter Dave Hello <PeterDaveHello@users.noreply.github.com>
Claudius Coenen <github@amenthes.de> Claudius Coenen <opensource@amenthes.de>

+ 18
- 18
CONTRIBUTING.md View File

@ -1,30 +1,30 @@
# Contributing
When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.
email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
## Pull Request Process
1. Ensure you signed all your commits with Developer Certificate of Origin (DCO).
2. Ensure any install or build dependencies are removed before the end of the layer when doing a
2. Ensure any install or build dependencies are removed before the end of the layer when doing a
build.
3. Update the README.md with details of changes to the interface, this includes new environment
3. Update the README.md with details of changes to the interface, this includes new environment
variables, exposed ports, useful file locations and container parameters.
4. Increase the version numbers in any examples files and the README.md to the new version that this
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
5. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
5. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.
## Contributor Code of Conduct
As contributors and maintainers of this project, and in the interest of fostering an open and
welcoming community, we pledge to respect all people who contribute through reporting issues,
posting feature requests, updating documentation, submitting pull requests or patches, and other
As contributors and maintainers of this project, and in the interest of fostering an open and
welcoming community, we pledge to respect all people who contribute through reporting issues,
posting feature requests, updating documentation, submitting pull requests or patches, and other
activities.
We are committed to making participation in this project a harassment-free experience for everyone,
regardless of level of experience, gender, gender identity and expression, sexual orientation,
We are committed to making participation in this project a harassment-free experience for everyone,
regardless of level of experience, gender, gender identity and expression, sexual orientation,
disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
Examples of unacceptable behavior by participants include:
@ -37,26 +37,26 @@ Examples of unacceptable behavior by participants include:
permission
* Other unethical or unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits,
code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By
adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently
applying these principles to every aspect of managing this project. Project maintainers who do not
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits,
code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By
adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently
applying these principles to every aspect of managing this project. Project maintainers who do not
follow or enforce the Code of Conduct may be permanently removed from the project team.
This code of conduct applies both within project spaces and in public spaces when an individual is
This code of conduct applies both within project spaces and in public spaces when an individual is
representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an
issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org),
version 1.2.0, available at
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org),
version 1.2.0, available at
[http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
### Sign your work
We use the Developer Certificate of Origin (DCO) as a additional safeguard
for the HackMD project. This is a well established and widely used
for the CodiMD project. This is a well established and widely used
mechanism to assure contributors have confirmed their right to license
their contribution under the project's license.
Please read [contribute/developer-certificate-of-origin][dcofile].


+ 0
- 902
CONTRIBUTORS View File

@ -1,902 +0,0 @@
=== .babelrc
Yukai Huang <yukaihuangtw@gmail.com>
=== .editorconfig
bananaappletw <bananaappletw@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== .gitignore
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== .sequelizerc.example
Yukai Huang <yukaihuangtw@gmail.com>
=== .travis.yml
bananaappletw <bananaappletw@gmail.com>
BoHong Li <a60814billy@gmail.com>
Max Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
=== AUTHORS
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== CONTRIBUTING.md
Max Wu <jackymaxj@gmail.com>
=== LICENSE
Cheng-Han, Wu <jackymaxj@gmail.com>
jackycute <jacky_cute0808@hotmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== README.md
alecdwm <alec@owls.io>
bananaappletw <bananaappletw@gmail.com>
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Florian Rhiem <florian.rhiem@gmail.com>
jackycute <jackymaxj@gmail.com>
Jannik Lorenz <dev@janniklorenz.de>
Jason Croft <jcroft@velocity.org>
Johannes Weißl <jargon@molb.org>
Jun SAKATA <jun.bj141400@gmail.com>
Laura Kyle <laura.kyle91@gmail.com>
Max Wu <jackymaxj@gmail.com>
neopostmodern <clemens@neopostmodern.com>
NV <nvsofts@gmail.com>
Sheogorath <sheogorath@shivering-isles.com>
The Gitter Badger <badger@gitter.im>
Wonder Chang <iwonder.tw@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
蒼時弦也 <elct9620@frost.tw>
=== app.js
alecdwm <alec@owls.io>
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
James Stephenson <c4p7.fl1n7@gmail.com>
Jan Kunzmann <jan-github@phobia.de>
Jason Croft <jcroft@velocity.org>
Jordan Matelsky <j6k4m8@gmail.com>
knjcode <knjcode@gmail.com>
LluisArevalo <thorin119@gmail.com>
Max Wu <jackymaxj@gmail.com>
NV <nvsofts@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Raccoon Li <a60814billy@gmail.com>
robert <ahmerov.rt@molodost.bz>
Sheogorath <sheogorath@shivering-isles.com>
S.Noda <noda@fenrir.co.jp>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== app.json
bananaappletw <bananaappletw@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== bin/heroku
bananaappletw <bananaappletw@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== bin/setup
Sheogorath <sheogorath@shivering-isles.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== config.json.example
alecdwm <alec@owls.io>
bananaappletw <bananaappletw@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/images/s3-image-upload/bucket-policy-editor.png
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/images/s3-image-upload/bucket-property.png
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/images/s3-image-upload/create-bucket.png
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/images/s3-image-upload/custom-policy.png
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/images/s3-image-upload/iam-user.png
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/images/s3-image-upload/review-policy.png
Yukai Huang <yukaihuangtw@gmail.com>
=== docs/guides/s3-image-upload.md
Johannes Weißl <jargon@molb.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== lib/config/default.js
BoHong Li <a60814billy@gmail.com>
=== lib/config/defaultSSL.js
BoHong Li <a60814billy@gmail.com>
=== lib/config/dockerSecret.js
BoHong Li <a60814billy@gmail.com>
=== lib/config/enum.js
BoHong Li <a60814billy@gmail.com>
=== lib/config/environment.js
BoHong Li <a60814billy@gmail.com>
Raccoon Li <a60814billy@gmail.com>
=== lib/config/index.js
BoHong Li <a60814billy@gmail.com>
tkykm <tkykm@users.noreply.github.com>
=== lib/config/oldEnvironment.js
BoHong Li <a60814billy@gmail.com>
Raccoon Li <a60814billy@gmail.com>
=== lib/config/utils.js
Raccoon Li <a60814billy@gmail.com>
=== lib/history.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/letter-avatars.js
alecdwm <alec@owls.io>
BoHong Li <a60814billy@gmail.com>
=== lib/logger.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/migrations/20150504155329-create-users.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20150508114741-create-notes.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20150515125813-create-temp.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20150702001020-update-to-0_3_1.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20150915153700-change-notes-title-to-text.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20160112220142-note-add-lastchange.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20160420180355-note-add-alias.js
BoHong Li <a60814billy@gmail.com>
=== lib/migrations/20160515114000-user-add-tokens.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
=== lib/migrations/20160607060246-support-revision.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/migrations/20160703062241-support-authorship.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/migrations/20161009040430-support-delete-note.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/migrations/20161201050312-support-email-signin.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/models/author.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/models/index.js
bananaappletw <bananaappletw@gmail.com>
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== lib/models/note.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
NV <nvsofts@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
蒼時弦也 <elct9620@frost.tw>
=== lib/models/revision.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/models/temp.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
=== lib/models/user.js
alecdwm <alec@owls.io>
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Jason Croft <jcroft@velocity.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/client.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/editor-socketio-server.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/index.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/selection.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/server.js
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/simple-text-operation.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/text-operation.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/ot/wrapped-operation.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== lib/realtime.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Florian Rhiem <florian.rhiem@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
蒼時弦也 <elct9620@frost.tw>
=== lib/response.js
alecdwm <alec@owls.io>
BoHong Li <a60814billy@gmail.com>
butlerx <butlerx@notthe.cloud>
Cheng-Han, Wu <jackymaxj@gmail.com>
Florian Rhiem <florian.rhiem@gmail.com>
Ikumi Shimizu <193s@users.noreply.github.com>
Jannik Lorenz <dev@janniklorenz.de>
Jason Croft <jcroft@velocity.org>
Sheogorath <sheogorath@shivering-isles.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
蒼時弦也 <elct9620@frost.tw>
=== lib/utils.js
BoHong Li <a60814billy@gmail.com>
butlerx <butlerx@notthe.cloud>
LluisArevalo <thorin119@gmail.com>
=== lib/web/auth/dropbox/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/email/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/facebook/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/github/index.js
BoHong Li <a60814billy@gmail.com>
Max Wu <jackymaxj@gmail.com>
=== lib/web/auth/gitlab/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/google/index.js
BoHong Li <a60814billy@gmail.com>
Kaiyu Shi <skyisno.1@gmail.com>
=== lib/web/auth/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/ldap/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/twitter/index.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/auth/utils.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/baseRouter.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/historyRouter.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/imageRouter.js
BoHong Li <a60814billy@gmail.com>
Kotaro Yamamoto <kota.crk@gmail.com>
Raccoon Li <a60814billy@gmail.com>
=== lib/web/middleware/checkURIValid.js
BoHong Li <a60814billy@gmail.com>
Max Wu <jackymaxj@gmail.com>
=== lib/web/middleware/redirectWithoutTrailingSlashes.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/middleware/tooBusy.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/noteRouter.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/statusRouter.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/userRouter.js
BoHong Li <a60814billy@gmail.com>
=== lib/web/utils.js
BoHong Li <a60814billy@gmail.com>
=== lib/workers/dmpWorker.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== locales/ca.json
Xavier Marques <xaviermarques4f@gmail.com>
=== locales/da.json
Patrick Andersen <patrick@bacha.dk>
=== locales/de.json
Jannik Lorenz <dev@janniklorenz.de>
Philipp Zumstein <zuphilip@users.noreply.github.com>
Simon Joda Stößer <SimJoSt@users.noreply.github.com>
=== locales/el.json
Stratos Gerakakis <stratosgear@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
zachariast <zachariastraianos@gmail.com>
=== locales/en.json
alecdwm <alec@owls.io>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== locales/eo.json
James Stephenson <c4p7.fl1n7@gmail.com>
=== locales/es.json
Pablo Guerrero <pablo.guerrero@sap.com>
Sergio Valverde <svg153@users.noreply.github.com>
=== locales/fr.json
Colin Maudry <colin@maudry.com>
Ho33e5 <ho33e5@gmail.com>
=== locales/hi.json
Paras <paraschadha2052@gmail.com>
=== locales/hr.json
ivanorsolic <ivanorsolic@users.noreply.github.com>
=== locales/it.json
GhiMax <ghina8@gmail.com>
=== locales/ja.json
tkqubo <tk.qubo@gmail.com>
=== locales/nl.json
Martijnpold <martijntje7@gmail.com>
Tom Wyckhuys <tomwyckhuys@gmail.com>
=== locales/pl.json
Bartlomiej Szala <fenix440@gmail.com>
Jakub Sygnowski <sygnowski@gmail.com>
=== locales/pt.json
Marcelo Alencar <marceloalves@ufpa.br>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== locales/ru.json
Himura Kazuto <Himura2la@users.noreply.github.com>
p0v1n0m <p0v1n0m@gmail.com>
=== locales/sv.json
Lars Karlsson <lars@kajes.se>
Patrick Andersen <patrick@bacha.dk>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== locales/tr.json
Ömer Erdinç Yağmurlu <omeryagmurlu@gmail.com>
=== locales/uk.json
Dmytro Kytsmen <dmitrokytsmen@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== locales/zh.json
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== package.json
alecdwm <alec@owls.io>
bananaappletw <bananaappletw@gmail.com>
BoHong Li <a60814billy@gmail.com>
Bryan Davis <bd808@wikimedia.org>
Cheng-Han, Wu <jackymaxj@gmail.com>
Fabien Meghazi <agr@amigrave.com>
greenkeeperio-bot <support@greenkeeper.io>
Jason Croft <jcroft@velocity.org>
Max Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Peter Dave Hello <PeterDaveHello@users.noreply.github.com>
Sheogorath <sheogorath@shivering-isles.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/apple-touch-icon.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/bootstrap-social.css
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/center.css
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/cover.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Jason Croft <jcroft@velocity.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/extra.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/font.css
Yukai Huang <yukaihuangtw@gmail.com>
=== public/css/github-extract.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/google-font.css
Yukai Huang <yukaihuangtw@gmail.com>
=== public/css/index.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Jason Croft <jcroft@velocity.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/markdown.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/mermaid.css
Cheng-Han, Wu <jackymaxj@gmail.com>
=== public/css/site.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/css/slide-preview.css
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/css/slide.css
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/default.md
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/docs/features.md
Cheng-Han, Wu <jackymaxj@gmail.com>
Max Wu <jackymaxj@gmail.com>
Pablo Guerrero <pablo.guerrero@gmail.com>
Sheogorath <sheogorath@shivering-isles.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/docs/release-notes.md
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/docs/slide-example.md
butlerx <butlerx@notthe.cloud>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/docs/yaml-metadata.md
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/favicon.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/fonts/SourceCodePro-Black.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Black.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Black.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Bold.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Bold.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Bold.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-ExtraLight.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-ExtraLight.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-ExtraLight.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Light.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Light.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Light.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Medium.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Medium.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Medium.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Regular.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Regular.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Regular.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Semibold.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Semibold.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceCodePro-Semibold.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Black.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Black.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Black.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-BlackItalic.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-BlackItalic.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-BlackItalic.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Bold.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Bold.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Bold.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-BoldItalic.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-BoldItalic.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-BoldItalic.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-ExtraLight.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-ExtraLight.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-ExtraLight.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-ExtraLightItalic.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-ExtraLightItalic.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-ExtraLightItalic.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Italic.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Italic.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Italic.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Light.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Light.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Light.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-LightItalic.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-LightItalic.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-LightItalic.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Regular.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Regular.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Regular.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Semibold.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Semibold.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-Semibold.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-SemiboldItalic.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-SemiboldItalic.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSansPro-SemiboldItalic.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Bold.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Bold.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Bold.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Regular.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Regular.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Regular.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Semibold.eot
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Semibold.ttf
Peter Dave Hello <hsu@peterdavehello.org>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/fonts/SourceSerifPro-Semibold.woff
Yukai Huang <yukaihuangtw@gmail.com>
=== public/hackmd-icon-1024.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/js/cover.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Jason Croft <jcroft@velocity.org>
NV <nvsofts@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/extra.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
NV <nvsofts@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/google-drive-picker.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Max Wu <jackymaxj@gmail.com>
=== public/js/google-drive-upload.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/js/history.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/htmlExport.js
BoHong Li <a60814billy@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/index.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Jason Croft <jcroft@velocity.org>
Laura Kyle <laura.kyle91@gmail.com>
NV <nvsofts@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
Zankio <xxoojoeooxx1@gmail.com>
蒼時弦也 <elct9620@frost.tw>
=== public/js/lib/appState.js
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/common/constant.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/js/lib/common/login.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/config/index.js
BoHong Li <a60814billy@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/editor/config.js
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/editor/index.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/editor/statusbar.html
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/editor/ui-elements.js
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/editor/utils.js
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/modeType.js
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/lib/syncscroll.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/locale.js
BoHong Li <a60814billy@gmail.com>
Peter Dave Hello <PeterDaveHello@users.noreply.github.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/pretty.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/render.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/js/reveal-markdown.js
BoHong Li <a60814billy@gmail.com>
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/js/slide.js
BoHong Li <a60814billy@gmail.com>
Max Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/screenshot.png
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/uploads/.gitkeep
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/vendor/abcjs_basic_3.1.1-min.js
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/bootstrap/tooltip.min.css
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/bootstrap/tooltip.min.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/codemirror-spell-checker/en_US.aff
Cheng-Han, Wu <jackymaxj@gmail.com>
=== public/vendor/codemirror-spell-checker/en_US.dic
Cheng-Han, Wu <jackymaxj@gmail.com>
=== public/vendor/codemirror-spell-checker/spell-checker.min.css
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/codemirror-spell-checker/spell-checker.min.js
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/vendor/inlineAttachment/codemirror.inline-attachment.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/inlineAttachment/inline-attachment.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-textcomplete/jquery.textcomplete.js
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-icons_222222_256x240.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-icons_2e83ff_256x240.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-icons_454545_256x240.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-icons_888888_256x240.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/images/ui-icons_cd0a0a_256x240.png
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/jquery-ui.min.css
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/jquery-ui/jquery-ui.min.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/md-toc.js
BoHong Li <a60814billy@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/ajax-adapter.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/client.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/codemirror-adapter.js
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/compress.sh
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/editor-client.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/ot.min.js
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/selection.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/socketio-adapter.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/text-operation.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/undo-manager.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/ot/wrapped-operation.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/showup/showup.css
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/vendor/showup/showup.js
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/error.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/hackmd.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/hackmd/body.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Florian Rhiem <florian.rhiem@gmail.com>
Ian Dees <ian.dees@gmail.com>
Jason Croft <jcroft@velocity.org>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
蒼時弦也 <elct9620@frost.tw>
=== public/views/hackmd/foot.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Jannik Lorenz <dev@janniklorenz.de>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/hackmd/footer.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/hackmd/head.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/hackmd/header.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Jannik Lorenz <dev@janniklorenz.de>
Jason Croft <jcroft@velocity.org>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
=== public/views/html.hbs
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/includes/header.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/includes/scripts.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/index.ejs
alecdwm <alec@owls.io>
Cheng-Han, Wu <jackymaxj@gmail.com>
Florian Rhiem <florian.rhiem@gmail.com>
James Stephenson <c4p7.fl1n7@gmail.com>
Jannik Lorenz <dev@janniklorenz.de>
Jason Croft <jcroft@velocity.org>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/index/body.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/index/foot.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/index/footer.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/index/head.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
xnum <s000032001@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/index/header.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/pretty.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== public/views/shared/disqus.ejs
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/shared/ga.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/shared/help-modal.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/shared/polyfill.ejs
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/shared/refresh-modal.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/shared/revision-modal.ejs
Cheng-Han, Wu <jackymaxj@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/shared/signin-modal.ejs
alecdwm <alec@owls.io>
Cheng-Han, Wu <jackymaxj@gmail.com>
Jason Croft <jcroft@velocity.org>
neopostmodern <clemens@neopostmodern.com>
Sheogorath <sheogorath@shivering-isles.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== public/views/slide.ejs
butlerx <butlerx@notthe.cloud>
Cheng-Han, Wu <jackymaxj@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== tmp/.keep
Wu Cheng-Han <jacky_cute0808@hotmail.com>
=== webpack.config.js
BoHong Li <a60814billy@gmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== webpack.production.js
BoHong Li <a60814billy@gmail.com>
geekyd <singhsince94@gmail.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== webpackBaseConfig.js
BoHong Li <a60814billy@gmail.com>
Peter Dave Hello <hsu@peterdavehello.org>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>
=== yarn.lock
BoHong Li <a60814billy@gmail.com>
Christian Schuhmann <madebyherzblut@users.noreply.github.com>
Wu Cheng-Han <jacky_cute0808@hotmail.com>
Yukai Huang <yukaihuangtw@gmail.com>

+ 132
- 102
README.md View File

@ -1,18 +1,18 @@
HackMD Community Edition
CodiMD
===
[![Standard - JavaScript Style Guide][standardjs-image]][standardjs-url]
[![Join the chat at https://gitter.im/hackmdio/hackmd][gitter-image]][gitter-url]
[![#HackMD on matrix.org][matrix.org-image]][matrix.org-url]
[![#CodiMD on matrix.org][matrix.org-image]][matrix.org-url]
[![build status][travis-image]][travis-url]
[![version][github-version-badge]][github-release-page]
[![Help Contribute to Open Source][codetriage-image]][codetriage-url]
[![POEditor][poeditor-image]][poeditor-url]
HackMD lets you create realtime collaborative markdown notes on all platforms.
Inspired by Hackpad, with more focus on speed and flexibility.
Still in the early stage, feel free to fork or contribute to HackMD.
CodiMD lets you create real-time collaborative markdown notes on all platforms.
Inspired by Hackpad, with more focus on speed and flexibility, and build from [HackMD](https://hackmd.io) source code.
Feel free to contribute.
Thanks for using! :smile:
@ -20,13 +20,15 @@ Thanks for using! :smile:
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
# Table of Contents
- [HackMD CE became CodiMD](#hackmd-ce-became-codimd)
- [Browsers Requirement](#browsers-requirement)
- [Installation](#installation)
- [Getting started (Native install)](#getting-started-native-install)
- [Prerequisite](#prerequisite)
- [Instructions](#instructions)
- [Heroku Deployment](#heroku-deployment)
- [HackMD by docker container](#hackmd-by-docker-container)
- [Kubernetes](#kubernetes)
- [CodiMD by docker container](#codimd-by-docker-container)
- [Upgrade](#upgrade)
- [Native setup](#native-setup)
- [Configuration](#configuration)
@ -41,6 +43,16 @@ Thanks for using! :smile:
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# HackMD CE became CodiMD
CodiMD was recently renamed from its former name was HackMD. CodiMD is the free software version of HackMD. It was the original Version of HackMD. The HackMD team initiated CodiMD and provided a solid code base. Due to the need of paying bills, A fork was created and called HackMD EE, which is a SaaS (Software as a Service) product available at [hackmd.io](https://hackmd.io).
We decided to change the name to break the confusion between HackMD and CodiMD, formally known as HackMD CE, as it never was an open core project.
Just to more confusion: We are still friends with HackMD :heart:
*For the whole renaming story, see the [related issue](https://github.com/hackmdio/hackmd/issues/720)*
# Browsers Requirement
- ![Chrome](http://browserbadge.com/chrome/47/18px) Chrome >= 47, Chrome for Android >= 47
@ -59,7 +71,7 @@ Thanks for using! :smile:
- Node.js 6.x or up (test up to 7.5.0)
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
- npm (and its dependencies, especially [uWebSockets](https://github.com/uWebSockets/uWebSockets#nodejs-developers), [node-gyp](https://github.com/nodejs/node-gyp#installation))
- For **building** HackMD we recommend to use a machine with at least **2GB** RAM
- For **building** CodiMD we recommend to use a machine with at least **2GB** RAM
### Instructions
@ -68,18 +80,27 @@ Thanks for using! :smile:
3. Setup the configs, see more below
4. Setup environment variables which will overwrite the configs
5. Build front-end bundle by `npm run build` (use `npm run dev` if you are in development)
6. Run the server as you like (node, forever, pm2)
6. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string
For example: `postgres://username:password@localhost:5432/codimd`
7. Run `node_modules/.bin/sequelize db:migrate`, this step will migrate your db to the latest schema
8. Run the server as you like (node, forever, pm2)
## Heroku Deployment
You can quickly setup a sample Heroku HackMD application by clicking the button below.
You can quickly setup a sample Heroku CodiMD application by clicking the button below.
[![Deploy on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hackmdio/hackmd/tree/master)
[![Deploy on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hackmdio/codimd/tree/master)
If you deploy it without the button, keep in mind to use the right buildpacks. For details check `app.json`.
## HackMD by docker container
[![Try in PWD](https://cdn.rawgit.com/play-with-docker/stacks/cff22438/assets/images/button.png)](http://play-with-docker.com?stack=https://github.com/hackmdio/docker-hackmd/raw/master/docker-compose.yml&stack_name=hackmd)
## Kubernetes
To install use `helm install stable/hackmd`.
For all further details, please check out the offical CodiMD [K8s helm chart](https://github.com/kubernetes/charts/tree/master/stable/hackmd).
## CodiMD by docker container
[![Try in PWD](https://cdn.rawgit.com/play-with-docker/stacks/cff22438/assets/images/button.png)](http://play-with-docker.com?stack=https://github.com/hackmdio/docker-hackmd/raw/master/docker-compose.yml&stack_name=codimd)
**Debian-based version:**
@ -91,11 +112,11 @@ If you deploy it without the button, keep in mind to use the right buildpacks. F
[![alpine](https://images.microbadger.com/badges/version/hackmdio/hackmd:alpine.svg)](https://microbadger.com/images/hackmdio/hackmd:alpine "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/hackmdio/hackmd:alpine.svg)](https://microbadger.com/images/hackmdio/hackmd:alpine "Get your own image badge on microbadger.com")
The easiest way to setup HackMD using docker are using the following three commands:
The easiest way to setup CodiMD using docker are using the following three commands:
```console
git clone https://github.com/hackmdio/docker-hackmd.git
cd docker-hackmd
cd docker-codimd
docker-compose up
```
Read more about it in the [docker repository…](https://github.com/hackmdio/docker-hackmd)
@ -104,14 +125,14 @@ Read more about it in the [docker repository…](https://github.com/hackmdio/doc
## Native setup
If you are upgrading HackMD from an older version, follow these steps:
If you are upgrading CodiMD from an older version, follow these steps:
1. Fully stop your old server first (important)
2. `git pull` or do whatever that updates the files
3. `npm install` to update dependencies
4. Build front-end bundle by `npm run build` (use `npm run dev` if you are in development)
5. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string
For example: `postgres://username:password@localhost:5432/hackmd`
For example: `postgres://username:password@localhost:5432/codimd`
6. Run `node_modules/.bin/sequelize db:migrate`, this step will migrate your db to the latest schema
7. Start your whole new server!
@ -147,79 +168,84 @@ There are some config settings you need to change in the files below.
| --------- | ------ | ----------- |
| `NODE_ENV` | `production` or `development` | set current environment (will apply corresponding settings in the `config.json`) |
| `DEBUG` | `true` or `false` | set debug mode; show more logs |
| `HMD_DOMAIN` | `hackmd.io` | domain name |
| `HMD_URL_PATH` | `hackmd` | sub URL path, like `www.example.com/<URL_PATH>` |
| `HMD_PORT` | `80` | web app port |
| `HMD_ALLOW_ORIGIN` | `localhost, hackmd.io` | domain name whitelist (use comma to separate) |
| `HMD_PROTOCOL_USESSL` | `true` or `false` | set to use SSL protocol for resources path (only applied when domain is set) |
| `HMD_URL_ADDPORT` | `true` or `false` | set to add port on callback URL (ports `80` or `443` won't be applied) (only applied when domain is set) |
| `HMD_USECDN` | `true` or `false` | set to use CDN resources or not (default is `true`) |
| `HMD_ALLOW_ANONYMOUS` | `true` or `false` | set to allow anonymous usage (default is `true`) |
| `HMD_ALLOW_ANONYMOUS_EDITS` | `true` or `false` | if `allowAnonymous` is `true`, allow users to select `freely` permission, allowing guests to edit existing notes (default is `false`) |
| `HMD_ALLOW_FREEURL` | `true` or `false` | set to allow new note creation by accessing a nonexistent note URL |
| `HMD_DEFAULT_PERMISSION` | `freely`, `editable`, `limited`, `locked` or `private` | set notes default permission (only applied on signed users) |
| `HMD_DB_URL` | `mysql://localhost:3306/database` | set the database URL |
| `HMD_SESSION_SECRET` | no example | Secret used to sign the session cookie. If non is set, one will randomly generated on startup |
| `HMD_SESSION_LIFE` | `1209600000` | Session life time. (milliseconds) |
| `HMD_FACEBOOK_CLIENTID` | no example | Facebook API client id |
| `HMD_FACEBOOK_CLIENTSECRET` | no example | Facebook API client secret |
| `HMD_TWITTER_CONSUMERKEY` | no example | Twitter API consumer key |
| `HMD_TWITTER_CONSUMERSECRET` | no example | Twitter API consumer secret |
| `HMD_GITHUB_CLIENTID` | no example | GitHub API client id |
| `HMD_GITHUB_CLIENTSECRET` | no example | GitHub API client secret |
| `HMD_GITLAB_SCOPE` | `read_user` or `api` | GitLab API requested scope (default is `api`) (GitLab snippet import/export need `api` scope) |
| `HMD_GITLAB_BASEURL` | no example | GitLab authentication endpoint, set to use other endpoint than GitLab.com (optional) |
| `HMD_GITLAB_CLIENTID` | no example | GitLab API client id |
| `HMD_GITLAB_CLIENTSECRET` | no example | GitLab API client secret |
| `HMD_MATTERMOST_BASEURL` | no example | Mattermost authentication endpoint |
| `HMD_MATTERMOST_CLIENTID` | no example | Mattermost API client id |
| `HMD_MATTERMOST_CLIENTSECRET` | no example | Mattermost API client secret |
| `HMD_DROPBOX_CLIENTID` | no example | Dropbox API client id |
| `HMD_DROPBOX_CLIENTSECRET` | no example | Dropbox API client secret |
| `HMD_GOOGLE_CLIENTID` | no example | Google API client id |
| `HMD_GOOGLE_CLIENTSECRET` | no example | Google API client secret |
| `HMD_LDAP_URL` | `ldap://example.com` | URL of LDAP server |
| `HMD_LDAP_BINDDN` | no example | bindDn for LDAP access |
| `HMD_LDAP_BINDCREDENTIALS` | no example | bindCredentials for LDAP access |
| `HMD_LDAP_SEARCHBASE` | `o=users,dc=example,dc=com` | LDAP directory to begin search from |
| `HMD_LDAP_SEARCHFILTER` | `(uid={{username}})` | LDAP filter to search with |
| `HMD_LDAP_SEARCHATTRIBUTES` | `displayName, mail` | LDAP attributes to search with (use comma to separate) |
| `HMD_LDAP_USERIDFIELD` | `uidNumber` or `uid` or `sAMAccountName` | The LDAP field which is used uniquely identify a user on HackMD |
| `HMD_LDAP_USERNAMEFIELD` | Fallback to userid | The LDAP field which is used as the username on HackMD |
| `HMD_LDAP_TLS_CA` | `server-cert.pem, root.pem` | Root CA for LDAP TLS in PEM format (use comma to separate) |
| `HMD_LDAP_PROVIDERNAME` | `My institution` | Optional name to be displayed at login form indicating the LDAP provider |
| `HMD_SAML_IDPSSOURL` | `https://idp.example.com/sso` | authentication endpoint of IdP. for details, see [guide](docs/guides/auth.md#saml-onelogin). |
| `HMD_SAML_IDPCERT` | `/path/to/cert.pem` | certificate file path of IdP in PEM format |
| `HMD_SAML_ISSUER` | no example | identity of the service provider (optional, default: serverurl)" |
| `HMD_SAML_IDENTIFIERFORMAT` | no example | name identifier format (optional, default: `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`) |
| `HMD_SAML_GROUPATTRIBUTE` | `memberOf` | attribute name for group list (optional) |
| `HMD_SAML_REQUIREDGROUPS` | `Hackmd-users` | group names that allowed (use vertical bar to separate) (optional) |
| `HMD_SAML_EXTERNALGROUPS` | `Temporary-staff` | group names that not allowed (use vertical bar to separate) (optional) |
| `HMD_SAML_ATTRIBUTE_ID` | `sAMAccountName` | attribute map for `id` (optional, default: NameID of SAML response) |
| `HMD_SAML_ATTRIBUTE_USERNAME` | `mailNickname` | attribute map for `username` (optional, default: NameID of SAML response) |
| `HMD_SAML_ATTRIBUTE_EMAIL` | `mail` | attribute map for `email` (optional, default: NameID of SAML response if `HMD_SAML_IDENTIFIERFORMAT` is default) |
| `HMD_IMGUR_CLIENTID` | no example | Imgur API client id |
| `HMD_EMAIL` | `true` or `false` | set to allow email signin |
| `HMD_ALLOW_PDF_EXPORT` | `true` or `false` | Enable or disable PDF exports |
| `HMD_ALLOW_EMAIL_REGISTER` | `true` or `false` | set to allow email register (only applied when email is set, default is `true`. Note `bin/manage_users` might help you if registration is `false`.) |
| `HMD_IMAGE_UPLOAD_TYPE` | `imgur`, `s3`, `minio` or `filesystem` | Where to upload image. For S3, see our Image Upload Guides for [S3](docs/guides/s3-image-upload.md) or [Minio](docs/guides/minio-image-upload.md) |
| `HMD_S3_ACCESS_KEY_ID` | no example | AWS access key id |
| `HMD_S3_SECRET_ACCESS_KEY` | no example | AWS secret key |
| `HMD_S3_REGION` | `ap-northeast-1` | AWS S3 region |
| `HMD_S3_BUCKET` | no example | AWS S3 bucket name |
| `HMD_MINIO_ACCESS_KEY` | no example | Minio access key |
| `HMD_MINIO_SECRET_KEY` | no example | Minio secret key |
| `HMD_MINIO_ENDPOINT` | `minio.example.org` | Address of your Minio endpoint/instance |
| `HMD_MINIO_PORT` | `9000` | Port that is used for your Minio instance |
| `HMD_MINIO_SECURE` | `true` | If set to `true` HTTPS is used for Minio |
| `HMD_AZURE_CONNECTION_STRING` | no example | Azure Blob Storage connection string |
| `HMD_AZURE_CONTAINER` | no example | Azure Blob Storage container name (automatically created if non existent) |
| `HMD_HSTS_ENABLE` | ` true` | set to enable [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) if HTTPS is also enabled (default is ` true`) |
| `HMD_HSTS_INCLUDE_SUBDOMAINS` | `true` | set to include subdomains in HSTS (default is `true`) |
| `HMD_HSTS_MAX_AGE` | `31536000` | max duration in seconds to tell clients to keep HSTS status (default is a year) |
| `HMD_HSTS_PRELOAD` | `true` | whether to allow preloading of the site's HSTS status (e.g. into browsers) |
| `HMD_CSP_ENABLE` | `true` | whether to enable Content Security Policy (directives cannot be configured with environment variables) |
| `HMD_CSP_REPORTURI` | `https://<someid>.report-uri.com/r/d/csp/enforce` | Allows to add a URL for CSP reports in case of violations |
| `CMD_DOMAIN` | `codimd.org` | domain name |
| `CMD_URL_PATH` | `codimd` | sub URL path, like `www.example.com/<URL_PATH>` |
| `CMD_HOST` | `localhost` | host to listen on |
| `CMD_PORT` | `80` | web app port |
| `CMD_PATH` | `/var/run/codimd.sock` | path to UNIX domain socket to listen on (if specified, `CMD_HOST` and `CMD_PORT` are ignored) |
| `CMD_ALLOW_ORIGIN` | `localhost, codimd.org` | domain name whitelist (use comma to separate) |
| `CMD_PROTOCOL_USESSL` | `true` or `false` | set to use SSL protocol for resources path (only applied when domain is set) |
| `CMD_URL_ADDPORT` | `true` or `false` | set to add port on callback URL (ports `80` or `443` won't be applied) (only applied when domain is set) |
| `CMD_USECDN` | `true` or `false` | set to use CDN resources or not (default is `true`) |
| `CMD_ALLOW_ANONYMOUS` | `true` or `false` | set to allow anonymous usage (default is `true`) |
| `CMD_ALLOW_ANONYMOUS_EDITS` | `true` or `false` | if `allowAnonymous` is `true`, allow users to select `freely` permission, allowing guests to edit existing notes (default is `false`) |
| `CMD_ALLOW_FREEURL` | `true` or `false` | set to allow new note creation by accessing a nonexistent note URL |
| `CMD_DEFAULT_PERMISSION` | `freely`, `editable`, `limited`, `locked` or `private` | set notes default permission (only applied on signed users) |
| `CMD_DB_URL` | `mysql://localhost:3306/database` | set the database URL |
| `CMD_SESSION_SECRET` | no example | Secret used to sign the session cookie. If non is set, one will randomly generated on startup |
| `CMD_SESSION_LIFE` | `1209600000` | Session life time. (milliseconds) |
| `CMD_FACEBOOK_CLIENTID` | no example | Facebook API client id |
| `CMD_FACEBOOK_CLIENTSECRET` | no example | Facebook API client secret |
| `CMD_TWITTER_CONSUMERKEY` | no example | Twitter API consumer key |
| `CMD_TWITTER_CONSUMERSECRET` | no example | Twitter API consumer secret |
| `CMD_GITHUB_CLIENTID` | no example | GitHub API client id |
| `CMD_GITHUB_CLIENTSECRET` | no example | GitHub API client secret |
| `CMD_GITLAB_SCOPE` | `read_user` or `api` | GitLab API requested scope (default is `api`) (GitLab snippet import/export need `api` scope) |
| `CMD_GITLAB_BASEURL` | no example | GitLab authentication endpoint, set to use other endpoint than GitLab.com (optional) |
| `CMD_GITLAB_CLIENTID` | no example | GitLab API client id |
| `CMD_GITLAB_CLIENTSECRET` | no example | GitLab API client secret |
| `CMD_MATTERMOST_BASEURL` | no example | Mattermost authentication endpoint |
| `CMD_MATTERMOST_CLIENTID` | no example | Mattermost API client id |
| `CMD_MATTERMOST_CLIENTSECRET` | no example | Mattermost API client secret |
| `CMD_DROPBOX_CLIENTID` | no example | Dropbox API client id |
| `CMD_DROPBOX_CLIENTSECRET` | no example | Dropbox API client secret |
| `CMD_GOOGLE_CLIENTID` | no example | Google API client id |
| `CMD_GOOGLE_CLIENTSECRET` | no example | Google API client secret |
| `CMD_LDAP_URL` | `ldap://example.com` | URL of LDAP server |
| `CMD_LDAP_BINDDN` | no example | bindDn for LDAP access |
| `CMD_LDAP_BINDCREDENTIALS` | no example | bindCredentials for LDAP access |
| `CMD_LDAP_SEARCHBASE` | `o=users,dc=example,dc=com` | LDAP directory to begin search from |
| `CMD_LDAP_SEARCHFILTER` | `(uid={{username}})` | LDAP filter to search with |
| `CMD_LDAP_SEARCHATTRIBUTES` | `displayName, mail` | LDAP attributes to search with (use comma to separate) |
| `CMD_LDAP_USERIDFIELD` | `uidNumber` or `uid` or `sAMAccountName` | The LDAP field which is used uniquely identify a user on CodiMD |
| `CMD_LDAP_USERNAMEFIELD` | Fallback to userid | The LDAP field which is used as the username on CodiMD |
| `CMD_LDAP_TLS_CA` | `server-cert.pem, root.pem` | Root CA for LDAP TLS in PEM format (use comma to separate) |
| `CMD_LDAP_PROVIDERNAME` | `My institution` | Optional name to be displayed at login form indicating the LDAP provider |
| `CMD_SAML_IDPSSOURL` | `https://idp.example.com/sso` | authentication endpoint of IdP. for details, see [guide](docs/guides/auth.md#saml-onelogin). |
| `CMD_SAML_IDPCERT` | `/path/to/cert.pem` | certificate file path of IdP in PEM format |
| `CMD_SAML_ISSUER` | no example | identity of the service provider (optional, default: serverurl)" |
| `CMD_SAML_IDENTIFIERFORMAT` | no example | name identifier format (optional, default: `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`) |
| `CMD_SAML_GROUPATTRIBUTE` | `memberOf` | attribute name for group list (optional) |
| `CMD_SAML_REQUIREDGROUPS` | `Hackmd-users` | group names that allowed (use vertical bar to separate) (optional) |
| `CMD_SAML_EXTERNALGROUPS` | `Temporary-staff` | group names that not allowed (use vertical bar to separate) (optional) |
| `CMD_SAML_ATTRIBUTE_ID` | `sAMAccountName` | attribute map for `id` (optional, default: NameID of SAML response) |
| `CMD_SAML_ATTRIBUTE_USERNAME` | `mailNickname` | attribute map for `username` (optional, default: NameID of SAML response) |
| `CMD_SAML_ATTRIBUTE_EMAIL` | `mail` | attribute map for `email` (optional, default: NameID of SAML response if `CMD_SAML_IDENTIFIERFORMAT` is default) |
| `CMD_IMGUR_CLIENTID` | no example | Imgur API client id |
| `CMD_EMAIL` | `true` or `false` | set to allow email signin |
| `CMD_ALLOW_PDF_EXPORT` | `true` or `false` | Enable or disable PDF exports |
| `CMD_ALLOW_EMAIL_REGISTER` | `true` or `false` | set to allow email register (only applied when email is set, default is `true`. Note `bin/manage_users` might help you if registration is `false`.) |
| `CMD_ALLOW_GRAVATAR` | `true` or `false` | set to `false` to disable gravatar as profile picture source on your instance |
| `CMD_IMAGE_UPLOAD_TYPE` | `imgur`, `s3`, `minio` or `filesystem` | Where to upload images. For S3, see our Image Upload Guides for [S3](docs/guides/s3-image-upload.md) or [Minio](docs/guides/minio-image-upload.md) |
| `CMD_S3_ACCESS_KEY_ID` | no example | AWS access key id |
| `CMD_S3_SECRET_ACCESS_KEY` | no example | AWS secret key |
| `CMD_S3_REGION` | `ap-northeast-1` | AWS S3 region |
| `CMD_S3_BUCKET` | no example | AWS S3 bucket name |
| `CMD_MINIO_ACCESS_KEY` | no example | Minio access key |
| `CMD_MINIO_SECRET_KEY` | no example | Minio secret key |
| `CMD_MINIO_ENDPOINT` | `minio.example.org` | Address of your Minio endpoint/instance |
| `CMD_MINIO_PORT` | `9000` | Port that is used for your Minio instance |
| `CMD_MINIO_SECURE` | `true` | If set to `true` HTTPS is used for Minio |
| `CMD_AZURE_CONNECTION_STRING` | no example | Azure Blob Storage connection string |
| `CMD_AZURE_CONTAINER` | no example | Azure Blob Storage container name (automatically created if non existent) |
| `CMD_HSTS_ENABLE` | ` true` | set to enable [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) if HTTPS is also enabled (default is ` true`) |
| `CMD_HSTS_INCLUDE_SUBDOMAINS` | `true` | set to include subdomains in HSTS (default is `true`) |
| `CMD_HSTS_MAX_AGE` | `31536000` | max duration in seconds to tell clients to keep HSTS status (default is a year) |
| `CMD_HSTS_PRELOAD` | `true` | whether to allow preloading of the site's HSTS status (e.g. into browsers) |
| `CMD_CSP_ENABLE` | `true` | whether to enable Content Security Policy (directives cannot be configured with environment variables) |
| `CMD_CSP_REPORTURI` | `https://<someid>.report-uri.com/r/d/csp/enforce` | Allows to add a URL for CSP reports in case of violations |
***Note:** Due to the rename process we renamed all `HMD_`-prefix variables to be `CMD_`-prefixed. The old ones continue to work.*
## Application settings `config.json`
@ -227,8 +253,10 @@ There are some config settings you need to change in the files below.
| --------- | ------ | ----------- |
| `debug` | `true` or `false` | set debug mode, show more logs |
| `domain` | `localhost` | domain name |
| `urlPath` | `hackmd` | sub URL path, like `www.example.com/<urlpath>` |
| `urlPath` | `codimd` | sub URL path, like `www.example.com/<urlpath>` |
| `host` | `localhost` | host to listen on |
| `port` | `80` | web app port |
| `path` | `/var/run/codimd.sock` | path to UNIX domain socket to listen on (if specified, `host` and `port` are ignored) |
| `allowOrigin` | `['localhost']` | domain name whitelist |
| `useSSL` | `true` or `false` | set to use SSL server (if `true`, will auto turn on `protocolUseSSL`) |
| `hsts` | `{"enable": true, "maxAgeSeconds": 31536000, "includeSubdomains": true, "preload": true}` | [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) options to use with HTTPS (default is the example value, max age is a year) |
@ -241,9 +269,9 @@ There are some config settings you need to change in the files below.
| `allowFreeURL` | `true` or `false` | set to allow new note creation by accessing a nonexistent note URL |
| `defaultPermission` | `freely`, `editable`, `limited`, `locked`, `protected` or `private` | set notes default permission (only applied on signed users) |
| `dbURL` | `mysql://localhost:3306/database` | set the db URL; if set, then db config (below) won't be applied |
| `db` | `{ "dialect": "sqlite", "storage": "./db.hackmd.sqlite" }` | set the db configs, [see more here](http://sequelize.readthedocs.org/en/latest/api/sequelize/) |
| `db` | `{ "dialect": "sqlite", "storage": "./db.codimd.sqlite" }` | set the db configs, [see more here](http://sequelize.readthedocs.org/en/latest/api/sequelize/) |
| `sslKeyPath` | `./cert/client.key` | SSL key path (only need when you set `useSSL`) |
| `sslCertPath` | `./cert/hackmd_io.crt` | SSL cert path (only need when you set `useSSL`) |
| `sslCertPath` | `./cert/codimd_io.crt` | SSL cert path (only need when you set `useSSL`) |
| `sslCAPath` | `['./cert/COMODORSAAddTrustCA.crt']` | SSL ca chain (only need when you set `useSSL`) |
| `dhParamPath` | `./cert/dhparam.pem` | SSL dhparam path (only need when you set `useSSL`) |
| `tmpPath` | `./tmp/` | temp directory path |
@ -254,6 +282,7 @@ There are some config settings you need to change in the files below.
| `errorPath` | `./public/views/error.ejs` | error template file path |
| `prettyPath` | `./public/views/pretty.ejs` | pretty template file path |
| `slidePath` | `./public/views/slide.hbs` | slide template file path |
| `uploadsPath` | `./public/uploads` | uploads directory - needs to be persistent when you use imageUploadType `filesystem` |
| `sessionName` | `connect.sid` | cookie session name |
| `sessionSecret` | `secret` | cookie session secret |
| `sessionLife` | `14 * 24 * 60 * 60 * 1000` | cookie session life |
@ -263,7 +292,8 @@ There are some config settings you need to change in the files below.
| `documentMaxLength` | `100000` | note max length |
| `email` | `true` or `false` | set to allow email signin |
| `allowEmailRegister` | `true` or `false` | set to allow email register (only applied when email is set, default is `true`. Note `bin/manage_users` might help you if registration is `false`.) |
| `imageUploadType` | `imgur`(default), `s3`, `minio`, `azure` or `filesystem` | Where to upload image
| `allowGravatar` | `true` or `false` | set to `false` to disable gravatar as profile picture source on your instance |
| `imageUploadType` | `imgur`, `s3`, `minio`, `azure` or `filesystem`(default) | Where to upload images. For S3, see our Image Upload Guides for [S3](docs/guides/s3-image-upload.md) or [Minio](docs/guides/minio-image-upload.md)|
| `minio` | `{ "accessKey": "YOUR_MINIO_ACCESS_KEY", "secretKey": "YOUR_MINIO_SECRET_KEY", "endpoint": "YOUR_MINIO_HOST", port: 9000, secure: true }` | When `imageUploadType` is set to `minio`, you need to set this key. Also checkout our [Minio Image Upload Guide](docs/guides/minio-image-upload.md) |
| `s3` | `{ "accessKeyId": "YOUR_S3_ACCESS_KEY_ID", "secretAccessKey": "YOUR_S3_ACCESS_KEY", "region": "YOUR_S3_REGION" }` | When `imageuploadtype` be set to `s3`, you would also need to setup this key, check our [S3 Image Upload Guide](docs/guides/s3-image-upload.md) |
| `s3bucket` | `YOUR_S3_BUCKET_NAME` | bucket name when `imageUploadType` is set to `s3` or `minio` |
@ -294,7 +324,7 @@ There are some config settings you need to change in the files below.
## Structure
```text
hackmd/
codimd/
├── tmp/ --- temporary files
├── docs/ --- document files
├── lib/ --- server libraries
@ -320,15 +350,15 @@ See more at [http://operational-transformation.github.io/](http://operational-tr
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
[gitter-url]: https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[matrix.org-image]: https://img.shields.io/badge/Matrix.org-%23HackMD@matrix.org-green.svg
[matrix.org-url]: https://riot.im/app/#/room/#hackmd:matrix.org
[travis-image]: https://travis-ci.org/hackmdio/hackmd.svg?branch=master
[travis-url]: https://travis-ci.org/hackmdio/hackmd
[github-version-badge]: https://img.shields.io/github/release/hackmdio/hackmd.svg
[github-release-page]: https://github.com/hackmdio/hackmd/releases
[matrix.org-image]: https://img.shields.io/badge/Matrix.org-%23CodiMD@matrix.org-green.svg
[matrix.org-url]: https://riot.im/app/#/room/#codimd:matrix.org
[travis-image]: https://travis-ci.org/hackmdio/codimd.svg?branch=master
[travis-url]: https://travis-ci.org/hackmdio/codimd
[github-version-badge]: https://img.shields.io/github/release/hackmdio/codimd.svg
[github-release-page]: https://github.com/hackmdio/codimd/releases
[standardjs-image]: https://cdn.rawgit.com/feross/standard/master/badge.svg
[standardjs-url]: https://github.com/feross/standard
[codetriage-image]: https://www.codetriage.com/hackmdio/hackmd/badges/users.svg
[codetriage-url]: https://www.codetriage.com/hackmdio/hackmd
[codetriage-image]: https://www.codetriage.com/hackmdio/codimd/badges/users.svg
[codetriage-url]: https://www.codetriage.com/hackmdio/codimd
[poeditor-image]: https://img.shields.io/badge/POEditor-translate-blue.svg
[poeditor-url]: https://poeditor.com/join/project/1OpGjF2Jir

+ 16
- 21
app.js View File

@ -26,22 +26,6 @@ var response = require('./lib/response')
var models = require('./lib/models')
var csp = require('./lib/csp')
// generate front-end constants by template
var constpath = path.join(__dirname, './public/js/lib/common/constant.ejs')
var data = {
domain: config.domain,
urlpath: config.urlPath,
debug: config.debug,
version: config.version,
DROPBOX_APP_KEY: config.dropbox.appKey,
allowedUploadMimeTypes: config.allowedUploadMimeTypes
}
ejs.renderFile(constpath, data, {}, function (err, str) {
if (err) throw new Error(err)
fs.writeFileSync(path.join(__dirname, './public/build/constant.js'), str)
})
// server setup
var app = express()
var server = null
@ -129,7 +113,7 @@ if (config.csp.enable) {
}
i18n.configure({
locales: ['en', 'zh', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo', 'da', 'ko'],
locales: ['en', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo', 'da', 'ko'],
cookie: 'locale',
directory: path.join(__dirname, '/locales'),
updateFiles: config.updateI18nFiles
@ -179,6 +163,7 @@ app.use(passport.session())
app.use(require('./lib/web/middleware/checkURIValid'))
// redirect url without trailing slashes
app.use(require('./lib/web/middleware/redirectWithoutTrailingSlashes'))
app.use(require('./lib/web/middleware/codiMDVersion'))
// routes need sessions
// template files
@ -220,11 +205,21 @@ io.sockets.on('connection', realtime.connection)
// listen
function startListen () {
server.listen(config.port, function () {
var address
var listenCallback = function () {
var schema = config.useSSL ? 'HTTPS' : 'HTTP'
logger.info('%s Server listening at port %d', schema, config.port)
logger.info('%s Server listening at %s', schema, address)
realtime.maintenance = false
})
}
// use unix domain socket if 'path' is specified
if (config.path) {
address = config.path
server.listen(config.path, listenCallback)
} else {
address = config.host + ':' + config.port
server.listen(config.port, config.host, listenCallback)
}
}
// sync db then start listen
@ -250,7 +245,7 @@ process.on('uncaughtException', function (err) {
// install exit handler
function handleTermSignals () {
logger.info('hackmd has been killed by signal, try to exit gracefully...')
logger.info('CodiMD has been killed by signal, try to exit gracefully...')
realtime.maintenance = true
// disconnect all socket.io clients
Object.keys(io.sockets.sockets).forEach(function (key) {


+ 3
- 3
app.json View File

@ -1,5 +1,5 @@
{
"name": "HackMD",
"name": "CodiMD",
"description": "Realtime collaborative markdown notes on all platforms",
"keywords": [
"Collaborative",
@ -7,8 +7,8 @@
"Notes"
],
"website": "https://hackmd.io",
"repository": "https://github.com/hackmdio/hackmd",
"logo": "https://github.com/hackmdio/hackmd/raw/master/public/hackmd-icon-1024.png",
"repository": "https://github.com/hackmdio/codimd",
"logo": "https://github.com/hackmdio/codimd/raw/master/public/codimd-icon-1024.png",
"success_url": "/",
"env": {
"BUILD_ASSETS": {


+ 3
- 4
bin/setup View File

@ -33,11 +33,10 @@ BUILD_ASSETS=false npm install
cat << EOF
Edit the following config file to setup hackmd server and client.
Read more info at https://github.com/hackmdio/hackmd#configuration-files
Edit the following config file to setup CodiMD server and client.
Read more info at https://github.com/hackmdio/codimd#configuration-files
* config.json -- server config
* public/js/config.js -- client config
* config.json -- CodiMD config
* .sequelizerc -- db config
EOF


+ 2
- 2
config.json.example View File

@ -11,7 +11,7 @@
},
"db": {
"dialect": "sqlite",
"storage": "./db.hackmd.sqlite"
"storage": "./db.codimd.sqlite"
}
},
"production": {
@ -34,7 +34,7 @@
"db": {
"username": "",
"password": "",
"database": "hackmd",
"database": "codimd",
"host": "localhost",
"port": "5432",
"dialect": "postgres"


+ 2
- 0
docs/guides/auth/github.md View File

@ -1,6 +1,8 @@
Authentication guide - GitHub
===
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
1. Sign-in or sign-up for a GitHub account
2. Navigate to developer settings in your GitHub account [here](https://github.com/settings/developers) and select the "OAuth Apps" tab
3. Click on the **New OAuth App** button, to create a new OAuth App:


+ 2
- 0
docs/guides/auth/gitlab-self-hosted.md View File

@ -1,6 +1,8 @@
# GitLab (self-hosted)
===
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
1. Sign in to your GitLab
2. Navigate to the application management page at `https://your.gitlab.domain/admin/applications` (admin permissions required)
3. Click **New application** to create a new application and fill out the registration form:


+ 2
- 0
docs/guides/auth/saml-onelogin.md View File

@ -1,6 +1,8 @@
Authentication guide - SAML (OneLogin)
===
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
1. Sign-in or sign-up for an OneLogin account. (available free trial for 2 weeks)
2. Go to the administration page.
3. Select the **APPS** menu and click on the **Add Apps**.


+ 2
- 0
docs/guides/auth/saml.md View File

@ -1,6 +1,8 @@
Authentication guide - SAML
===
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
The basic procedure is the same as the case of OneLogin which is mentioned in [OneLogin-Guide](./saml-onelogin.md). If you want to match your IdP, you can use more configurations as below.
* If your IdP accepts metadata XML of the service provider to ease configuraion, use this url to download metadata XML.


+ 2
- 0
docs/guides/auth/twitter.md View File

@ -1,6 +1,8 @@
Authentication guide - Twitter
===
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
1. Sign-in or sign-up for a Twitter account
2. Go to the Twitter Application management page [here](https://apps.twitter.com/)
3. Click on the **Create New App** button to create a new Twitter app:


+ 3
- 1
docs/guides/minio-image-upload.md View File

@ -1,6 +1,8 @@
Minio Guide for HackMD
Minio Guide for CodiMD
===
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
1. First of all you need to setup Minio itself.
Please refer to the [official Minio docs](https://docs.minio.io/) for an


+ 17
- 0
docs/guides/providing-terms.md View File

@ -0,0 +1,17 @@
Setup your terms of use
===
To setup your terms of use, you need to provide a document called `terms-of-use.md` which contains them. Of course written in Markdown.
It has to be provided under `./public/docs/` and will be automatically turned into a CodiMD document. It will also automatically updated as soon as you change the document on disk.
As soon as the file exists a link will show up in the bottom part along with the release notes and link to them.
Setup your privacy policy
===
To add a privacy policy you can use the same technique as for the terms of use. The main difference is that the document is called `privacy.md`.
See our example file `./public/docs/privacy.md.example` container some useful hints for writing your own privacy policy.
As with the terms of use, a link to the privacy notices will show up in the area where the release notes are provided on the index page.

+ 3
- 1
docs/guides/s3-image-upload.md View File

@ -1,4 +1,6 @@
# Guide - Setup HackMD S3 image upload
# Guide - Setup CodiMD S3 image upload
***Note:** This guide was written before the renaming. Just replace `HackMD` with `CodiMD` in your mind :smile: thanks!*
1. Go to [AWS S3 console](https://console.aws.amazon.com/s3/home) and create a new bucket.


+ 5
- 1
lib/config/default.js View File

@ -3,6 +3,7 @@
module.exports = {
domain: '',
urlPath: '',
host: '0.0.0.0',
port: 3000,
urlAddPort: false,
allowOrigin: ['localhost'],
@ -41,10 +42,12 @@ module.exports = {
defaultNotePath: './public/default.md',
docsPath: './public/docs',
indexPath: './public/views/index.ejs',
hackmdPath: './public/views/hackmd.ejs',
codimdPath: './public/views/codimd.ejs',
errorPath: './public/views/error.ejs',
prettyPath: './public/views/pretty.ejs',
slidePath: './public/views/slide.ejs',
constantsPath: './public/js/lib/common/constant.ejs',
uploadsPath: './public/uploads',
// session
sessionName: 'connect.sid',
sessionSecret: 'secret',
@ -145,5 +148,6 @@ module.exports = {
},
email: true,
allowEmailRegister: true,
allowGravatar: true,
allowPDFExport: true
}

+ 88
- 85
lib/config/environment.js View File

@ -3,122 +3,125 @@
const {toBooleanConfig, toArrayConfig, toIntegerConfig} = require('./utils')
module.exports = {
domain: process.env.HMD_DOMAIN,
urlPath: process.env.HMD_URL_PATH,
port: toIntegerConfig(process.env.HMD_PORT),
urlAddPort: toBooleanConfig(process.env.HMD_URL_ADDPORT),
useSSL: toBooleanConfig(process.env.HMD_USESSL),
domain: process.env.CMD_DOMAIN,
urlPath: process.env.CMD_URL_PATH,
host: process.env.CMD_HOST,
port: toIntegerConfig(process.env.CMD_PORT),
path: process.env.CMD_PATH,
urlAddPort: toBooleanConfig(process.env.CMD_URL_ADDPORT),
useSSL: toBooleanConfig(process.env.CMD_USESSL),
hsts: {
enable: toBooleanConfig(process.env.HMD_HSTS_ENABLE),
maxAgeSeconds: process.env.HMD_HSTS_MAX_AGE,
includeSubdomains: toBooleanConfig(process.env.HMD_HSTS_INCLUDE_SUBDOMAINS),
preload: toBooleanConfig(process.env.HMD_HSTS_PRELOAD)
enable: toBooleanConfig(process.env.CMD_HSTS_ENABLE),
maxAgeSeconds: process.env.CMD_HSTS_MAX_AGE,
includeSubdomains: toBooleanConfig(process.env.CMD_HSTS_INCLUDE_SUBDOMAINS),
preload: toBooleanConfig(process.env.CMD_HSTS_PRELOAD)
},
csp: {
enable: toBooleanConfig(process.env.HMD_CSP_ENABLE),
reportURI: process.env.HMD_CSP_REPORTURI
},
protocolUseSSL: toBooleanConfig(process.env.HMD_PROTOCOL_USESSL),
allowOrigin: toArrayConfig(process.env.HMD_ALLOW_ORIGIN),
useCDN: toBooleanConfig(process.env.HMD_USECDN),
allowAnonymous: toBooleanConfig(process.env.HMD_ALLOW_ANONYMOUS),
allowAnonymousEdits: toBooleanConfig(process.env.HMD_ALLOW_ANONYMOUS_EDITS),
allowFreeURL: toBooleanConfig(process.env.HMD_ALLOW_FREEURL),
defaultPermission: process.env.HMD_DEFAULT_PERMISSION,
dbURL: process.env.HMD_DB_URL,
sessionSecret: process.env.HMD_SESSION_SECRET,
sessionLife: toIntegerConfig(process.env.HMD_SESSION_LIFE),
imageUploadType: process.env.HMD_IMAGE_UPLOAD_TYPE,
enable: toBooleanConfig(process.env.CMD_CSP_ENABLE),
reportURI: process.env.CMD_CSP_REPORTURI
},
protocolUseSSL: toBooleanConfig(process.env.CMD_PROTOCOL_USESSL),
allowOrigin: toArrayConfig(process.env.CMD_ALLOW_ORIGIN),
useCDN: toBooleanConfig(process.env.CMD_USECDN),
allowAnonymous: toBooleanConfig(process.env.CMD_ALLOW_ANONYMOUS),
allowAnonymousEdits: toBooleanConfig(process.env.CMD_ALLOW_ANONYMOUS_EDITS),
allowFreeURL: toBooleanConfig(process.env.CMD_ALLOW_FREEURL),
defaultPermission: process.env.CMD_DEFAULT_PERMISSION,
dbURL: process.env.CMD_DB_URL,
sessionSecret: process.env.CMD_SESSION_SECRET,
sessionLife: toIntegerConfig(process.env.CMD_SESSION_LIFE),
imageUploadType: process.env.CMD_IMAGE_UPLOAD_TYPE,
imgur: {
clientID: process.env.HMD_IMGUR_CLIENTID
clientID: process.env.CMD_IMGUR_CLIENTID
},
s3: {
accessKeyId: process.env.HMD_S3_ACCESS_KEY_ID,
secretAccessKey: process.env.HMD_S3_SECRET_ACCESS_KEY,
region: process.env.HMD_S3_REGION
accessKeyId: process.env.CMD_S3_ACCESS_KEY_ID,
secretAccessKey: process.env.CMD_S3_SECRET_ACCESS_KEY,
region: process.env.CMD_S3_REGION
},
minio: {
accessKey: process.env.HMD_MINIO_ACCESS_KEY,
secretKey: process.env.HMD_MINIO_SECRET_KEY,
endPoint: process.env.HMD_MINIO_ENDPOINT,
secure: toBooleanConfig(process.env.HMD_MINIO_SECURE),