abiosoft / abiosoft/caddy-git

403 on Webhook

未關閉
#34 25 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
206
分支
42
PR 合併指標
30 天內沒有已合併 PR

描述

I'm having issues getting my web hook to work. On Caddy start it does pull the latest code from bitbucket as expected. But for some reason pulling using the webhook is not working. I'm thinking that the webhook should never reach the rewrite rule, no? The key file should be working because it is pulling on container start, just not on code push.

Any help would be much appreciated. Here is my info:
## CADDYFILE VERSION 0.8.2:

```
mydomain
tls myemail
#browse
fastcgi / 127.0.0.1:9000 php # php variant only
startup php-fpm # php variant only

git {
repo git@bitbucket.org:mygitrepo.git
branch master
key /root/.ssh/id_rsa
path ../../src
hook /_webhook
then cp -pR /srv/src/laravel /srv/
then sh -c "cd /srv/laravel && composer update"
then sh -c "cd /srv && chown -R nobody.nobody laravel"
}

root /srv/laravel/public

log access.log
errors error.log

rewrite {
if {file} not favicon.ico
to {path} {path}/ /index.php?{query}
}
```
## BITBUCKET SET:

Under integrations and Webhook i have the following hook:
https://mydomain/_webhook
## ERROR from bitbucket:

Response from https://mydomain/_webhook
HTTP status: 403
Elapsed time: 1590ms
Request time: 7 minutes ago (Tuesday, April 26th 2016, 3:56:10 pm)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。