ECMP中caddy配置git进行自动同步
ECMP中caddy配置git进行自动同步,有两种情况,第一种就git公开库使用https,第二种git私库使用sshAkkunYo### git公开库的配置
这个简单粗暴,caddy配置文件中git模块的配置如下,
git {
repo https://github.com/xxx/blog
branch master
path /opt/share/www/default
interval 60
then chmod -R 777 /opt/share/www/default
}
就是这么简单
### git私库的配置
caddy配置文件中git模块的配置如下,要加ssh:
git {
repo ssh://[email protected]:123456/blog.git
path /opt/share/www/blog
interval 60
then chmod -R 777 /opt/share/www/blog
}
然后修改opt中ssh客户端的配置文件/opt/etc/ssh_config
StrictHostKeyChecking no
ok,搞定
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
AkkunYoの博客!
喜欢就支持一下吧