diff --git a/lighttpd/10-gitlab.conf b/lighttpd/10-gitlab.conf new file mode 100644 index 0000000..a2e0adb --- /dev/null +++ b/lighttpd/10-gitlab.conf @@ -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 +} diff --git a/lighttpd/README.md b/lighttpd/README.md new file mode 100644 index 0000000..2b23dac --- /dev/null +++ b/lighttpd/README.md @@ -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"