trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
243 stars 58 forks source link

Does not sync when website is basic auth protected #85

Closed uedaeita closed 6 years ago

uedaeita commented 6 years ago

It seems like when the website is basic authentication enabled, the git-sync does not work. I have http://username:password@website_url/_git-sync for my webhook and the webhook returns internal error (Net::ReadTimeout) what's the issue?

w00fz commented 6 years ago

This seems to be an issue with your web server more than GitSync, try accessing it yourself via browser and from outside your network (ie, via LTE on your phone). The error appears to indicate your site is just not reachable with that user/pass.

I would also suggest rather than passing the authentication via URL like you are doing (which is really not safe), you just allow all the IPs from GitHub servers (https://api.github.com/meta).