mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
35 lines
946 B
Text
35 lines
946 B
Text
# 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
|
|
}
|