mirror of
https://github.com/jlengrand/gitlab-recipes.git
synced 2026-03-10 08:11:17 +00:00
Merge pull request #1 from tvn87/lighttpd
lighttpd example configuration
This commit is contained in:
30
lighttpd/10-gitlab.conf
Normal file
30
lighttpd/10-gitlab.conf
Normal 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
13
lighttpd/README.md
Normal 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"
|
||||
Reference in New Issue
Block a user