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