summarylogtreecommitdiffstats
path: root/lighttpd.conf.example
blob: c34853005f44a35f078e4373960610dc4ec7b4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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"

## uploads must be served as static files
$HTTP["url"] == "^/upload" {
  var.vhost.name = "YOUR_SERVER_FQDN"
  var.vhost.path = "/usr/share/webapps/gitlab/public"
}
## otherwise everything is proxied
else $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
}