abiosoft / abiosoft/caddy-git

Problems with clone on startup with git host in same Caddyfile

未关闭
#109 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
206
派生
42
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。