From 343b1f5c922cd413027e022fddc73b73f56201c0 Mon Sep 17 00:00:00 2001 From: globalcitizen Date: Mon, 1 Oct 2012 12:58:13 +1000 Subject: [PATCH] Add upload fix for issue at https://github.com/gitlabhq/gitlabhq/issues/348 --- lighttpd/10-gitlab.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lighttpd/10-gitlab.conf b/lighttpd/10-gitlab.conf index a2e0adb..45e988e 100644 --- a/lighttpd/10-gitlab.conf +++ b/lighttpd/10-gitlab.conf @@ -15,8 +15,13 @@ simple-vhost.document-root = "htdocs" ## the default host if no host is sent simple-vhost.default-host = "YOUR_SERVER_FQDN" - -$HTTP["host"] == "YOUR_SERVER_FQDN" { +## uploads must be served as static files +$HTTP["url"] == "^/upload" { + var.vhost.name = "YOUR_SERVER_FQDN" + var.vhost.path = "/home/gitlab/gitlab/public" +} +## otherwise everything is proxied +else $HTTP["host"] == "YOUR_SERVER_FQDN" { var.vhost_name = "YOUR_SERVER_FQDN" var.vhost_path = "/var/www/YOUR_SERVER_FQDN" # This directory should be empty