Merge pull request #1 from tvn87/lighttpd

lighttpd example configuration
This commit is contained in:
Dmitriy Zaporozhets
2012-09-05 06:20:57 -07:00
2 changed files with 43 additions and 0 deletions

30
lighttpd/10-gitlab.conf Normal file
View File

@@ -0,0 +1,30 @@
# GITLAB
# Maintainer: @tvn87
# App Version: 2.8
server.modules += (
"mod_simple_vhost",
"mod_proxy"
)
## The document root of a virtual host is document-root =
## simple-vhost.server-root + $HTTP["host"] + simple-vhost.document-root
simple-vhost.server-root = "/var/www"
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" {
var.vhost_name = "YOUR_SERVER_FQDN"
var.vhost_path = "/var/www/YOUR_SERVER_FQDN" # This directory should be empty
proxy.server = ( "" => ( (
"host" => "127.0.0.1",
"port" => "8080"
),
)
)
ssl.pemfile = "/etc/lighttpd/certs/YOUR_SERVER_FQDN.pem" # If ssl is enabled
}

13
lighttpd/README.md Normal file
View File

@@ -0,0 +1,13 @@
Gitlab with lighttpd webserver
==============================
* Maintainer: @tvn87
* App Version: 2.8
This config access gitlab via TCP port instead of sockets because of the
mod_proxy module which seems to be unable to connect via sockets.
Because the _gitlab_ default config is set for listening to UNIX sockets you
need to change that default configuration in *gitlab/config/unicorn.rb*:
listen "127.0.0.1:8080"