hexo-myadmin
v1.1.0
Published
a hexo dashboard plugin, for live blog server.
Downloads
21
Maintainers
Readme
hexo-myadmin
a hexo dashboard plugin, for live hexo server.
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
Contribute
- let me know how it can be improved in the github issues
- fork and pull-request