Skip to content

Commit 7617598

Browse files
committed
Merge pull request #1 from tvn87/lighttpd
lighttpd example configuration
2 parents e7ba38e + 57a034b commit 7617598

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

lighttpd/10-gitlab.conf

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

lighttpd/README.md

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

0 commit comments

Comments
 (0)