diff options
| -rw-r--r-- | lighttpd.conf | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lighttpd.conf b/lighttpd.conf index 34cef44..4dc0b11 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -11,12 +11,11 @@ mimetype.assign = ( ".css" => "text/css" ) # accesslog.format = "%h %V %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\" %T" # Proxy git http requests to gitea -$HTTP["url"] =~ "^/(.+?)\.git/(info/refs|git-upload-pack)$" { - # Only allow GET and POST methods +$HTTP["url"] =~ "^/(?!cgit\.cgi)(.+?)(?:\.git)?/(info/refs|git-upload-pack)$" { + # only allow GET/POST methods $HTTP["request-method"] !~ "^(GET|POST)$" { - url.access-deny = ("") + url.access-deny = ( "" ) } - # Proxy to gitea server proxy.server = ( "" => (( "host" => "gitea", |
