aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lighttpd.conf5
1 files changed, 2 insertions, 3 deletions
diff --git a/lighttpd.conf b/lighttpd.conf
index f68c3e8..e874323 100644
--- a/lighttpd.conf
+++ b/lighttpd.conf
@@ -12,10 +12,11 @@ accesslog.format = "%h %V %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"
# Proxy git http requests to gitea
$HTTP["url"] =~ "^/(.+?)\.git/(info/refs|git-upload-pack)$" {
+ # Only allow GET and POST methods
$HTTP["request-method"] !~ "^(GET|POST)$" {
url.access-deny = ("")
}
-
+ # Proxy to gitea server
proxy.server = (
"" => ((
"host" => "gitea",
@@ -24,8 +25,6 @@ $HTTP["url"] =~ "^/(.+?)\.git/(info/refs|git-upload-pack)$" {
)
}
else $HTTP["url"] =~ "^/" {
-
-
# Rewrite any other url but the asset urls to be handled by the cgit
# executable. Use with virtual-root=/ cgitrc setting.
url.rewrite-once = (