abiosoft / abiosoft/caddy-git

Problems with clone on startup with git host in same Caddyfile

Đang mở
#109 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
206
Fork
42
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I am using Caddy for proxying to gitea and providing static file hosting from a directory. I now want to auto-deploy a website using this plugin.

Caddyfile looks like this:

```
git.bar.com {
proxy / localhost:3000
}
blog.bar.com {
root /var/www/foo2
git {
repo https://git.bar.com/...
}
}
```

Now the startup fails as the initial clone can not reach the git Server as the caddy serves this itself. Maybe it is possible to delay the clone, ignore errors or deactivate that behaviour? All three are possible solutions.

EDIT: Didn't want to add a new issue for this: Does it serve the .git folder? Or do I need to use the internal directive to hide it?

EDIT 2: Also mentioned in #102, #79 and #85

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.