在github工作流中插入gitalk的clienSecret
前言美好的愿望:为Github page上的Hexo站点的 gitalk 设定非公开的ClientSecret。Gitalk 可以为Hexo站点的post增加评论功能,评论自动推到github issue,挺方便的。gitalk 的配置需要ClientSecret,如直接明文写在_config.yml文件中,**不妥!**。但是也没办法,参考Gitalk明文使用secret安全吗。Github提供了Encrypted secrets功能,原以为能解决这个问题,但仍只能在静态文件上明文写出client secret,但起码主分支上看不到明文的secret了。
为gitalk注册一个OAth应用
登录你的Github账户
注册OAuth apps –> New OAthApp
Application name: 随意Homepage URL: Github page 的域名,如果时custom domin,就用它Application description: 随意Authorization callback URL: 同Homepage URLEnable Device Flo ...
设置git全局代理
#!/bin/bash# ------ User zone ---------proxy_protocol="socks" # http/socksproxy_server="your_proxy_server_address" proxy_port="10086"# --------------------------help="Fail: Bad argument. \n Usage: ${0} <command> \n Command: \n \t set / unset \n"if test $# -lt 1then echo -e ${help} exit 1fiif test $1 = "set"then proxy=${proxy_protocol}://${proxy_server}:${proxy_port} git c ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post$ hexo new "My New Post"
More info: Writing
Run server$ hexo server
More info: Server
Generate static files$ hexo generate
More info: Generating
Deploy to remote sites$ hexo deploy
More info: Deployment