abiosoft / caddy-git

git middleware for Caddy

Home Page:http://caddyserver.com/docs/http.git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error during parsing: Unknown directive 'repo'

Merith-TK opened this issue · comments

this is my config

localhost:80 {
	root /home/bunny/www
}

git {
	repo     gitea@git.merith.tk:merith/caddy_site.git
	branch   master
	key      /home/bunny/.ssh/id_rsa
	path     /home/bunny/www
	interval 120
}

but when i run specifying the config file with caddy -conf /home/bunny/www/caddy.conf, it spews this error
/home/bunny/www/caddy.conf:6 - Error during parsing: Unknown directive 'repo'
and this is the command i used to install caddy
curl https://getcaddy.com | bash -s personal hook.service,http.filemanager,http.git

Your config is wrong. git should either be under the site or you can remove the braces from the site.

localhost:80
root /home/bunny/www

git {
	repo     gitea@git.merith.tk:merith/caddy_site.git
	branch   master
	key      /home/bunny/.ssh/id_rsa
	path     /home/bunny/www
	interval 120
}

Yep, someone on Discord told me what I did wrong.