diff options
author | Lopo | 2015-06-17 20:07:30 +0200 |
---|---|---|
committer | Lopo | 2015-06-17 20:07:30 +0200 |
commit | 9c7eec6f762ec992ef753c727241c0590c2d5ec3 (patch) | |
tree | 063696ddce80c9825e6603a69baa1c6495f251fe /lighttpd.conf.example | |
download | aur-9c7eec6f762ec992ef753c727241c0590c2d5ec3.tar.gz |
Initial import
Diffstat (limited to 'lighttpd.conf.example')
-rw-r--r-- | lighttpd.conf.example | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lighttpd.conf.example b/lighttpd.conf.example new file mode 100644 index 000000000000..e5f4b34ffd08 --- /dev/null +++ b/lighttpd.conf.example @@ -0,0 +1,33 @@ +# GITLAB CI + +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-ci/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" => "8081" + ), + ) + ) + ssl.pemfile = "/etc/lighttpd/certs/YOUR_SERVER_FQDN.pem" # If ssl is enabled +} |