hexo-myadmin

1.1.0 • Public • Published

hexo-myadmin

a hexo dashboard plugin, for live hexo server.

example

USAGE

Node.js >= 12.0.0 required.

    # install hexo-myadmin
    npm i hexo-myadmin --save

    # start server with global hexo-cli
    hexo server

    # or with pm2 as deamon
    pm2 start node_modules/.bin/hexo -- server

    # visit localhost:4000/admin

Password Protection

you can add a few config variables to your hexo _config.yml:

admin:
  username: myfavoritename
  password_hash: be121740bf988b2225a313fa1f107ca1
  secret: a secret something

The password_hash is the bcrypt hash of your password. You can use this site to come up with that, or whatever you want. The secret is used to make the cookies secure, so it's a good idea to have it be long and complicated.

Thanks

hexo-admin

Contribute

Dependencies (17)

Dev Dependencies (6)

Package Sidebar

Install

npm i hexo-myadmin

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

16 MB

Total Files

352

Last publish

Collaborators

  • thesadabc