mirror of
https://github.com/jlengrand/gitlab-recipes.git
synced 2026-03-10 08:11:17 +00:00
@@ -15,8 +15,13 @@ 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" {
|
||||
## uploads must be served as static files
|
||||
$HTTP["url"] == "^/upload" {
|
||||
var.vhost.name = "YOUR_SERVER_FQDN"
|
||||
var.vhost.path = "/home/gitlab/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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user