File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments