Skip to content

Commit 343b1f5

Browse files
committed
1 parent d3429f6 commit 343b1f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lighttpd/10-gitlab.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ simple-vhost.document-root = "htdocs"
1515
## the default host if no host is sent
1616
simple-vhost.default-host = "YOUR_SERVER_FQDN"
1717

18-
19-
$HTTP["host"] == "YOUR_SERVER_FQDN" {
18+
## uploads must be served as static files
19+
$HTTP["url"] == "^/upload" {
20+
var.vhost.name = "YOUR_SERVER_FQDN"
21+
var.vhost.path = "/home/gitlab/gitlab/public"
22+
}
23+
## otherwise everything is proxied
24+
else $HTTP["host"] == "YOUR_SERVER_FQDN" {
2025
var.vhost_name = "YOUR_SERVER_FQDN"
2126
var.vhost_path = "/var/www/YOUR_SERVER_FQDN" # This directory should be empty
2227

0 commit comments

Comments
 (0)