Skip to content

Commit a26325b

Browse files
committed
lighttpd example configuration
1 parent e7ba38e commit a26325b

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

lighttpd/10-gitlab.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
server.modules += ( "mod_simple_vhost",
2+
"mod_proxy"
3+
)
4+
5+
## The document root of a virtual host is document-root =
6+
## simple-vhost.server-root + $HTTP["host"] + simple-vhost.document-root
7+
simple-vhost.server-root = "/var/www"
8+
simple-vhost.document-root = "htdocs"
9+
10+
## the default host if no host is sent
11+
simple-vhost.default-host = "YOUR_SERVER_FQDN"
12+
13+
14+
$HTTP["host"] == "YOUR_SERVER_FQDN" {
15+
var.vhost_name = "YOUR_SERVER_FQDN"
16+
17+
## This Path is irrelevant for gitlab and should be empty
18+
var.vhost_path = "/var/www/YOUR_SERVER_FQDN"
19+
20+
proxy.server = ( "" => ( ( "host" => "127.0.0.1",
21+
"port" => "8080"
22+
),
23+
))
24+
ssl.pemfile = "/etc/lighttpd/certs/YOUR_SERVER_FQDN.pem"
25+
}

lighttpd/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This config access gitlab via TCP port instead of sockets because of the
2+
mod_proxy module which seems to be unable to connect via sockets.
3+
4+
Because the _gitlab_ default config is set for listening to UNIX sockets you
5+
need to change that default configuration in *gitlab/config/unicorn.rb*:
6+
7+
listen "127.0.0.1:8080"

0 commit comments

Comments
 (0)