Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with clone on startup with git host in same Caddyfile #109

Open
hypervtechnics opened this issue Nov 30, 2019 · 2 comments
Open

Comments

@hypervtechnics
Copy link

hypervtechnics commented Nov 30, 2019

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

@hypervtechnics hypervtechnics changed the title Problems with clone on startup with gut host in same Caddyfile Problems with clone on startup with git host in same Caddyfile Nov 30, 2019
@hypervtechnics
Copy link
Author

Is someone able to test this? I think I am able to implement this by looking at the existing code, but not familiar enough to test it.

@hypervtechnics
Copy link
Author

I implemented this but could not test if that works or breaks anything. See #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant