Merge branch 'updates_for_lfs_and_artifacts' into 'master'
Update nginx configuration file. Add support for git lfs configuration. See merge request !535
This commit is contained in:
commit
4e365f159e
|
@ -62,6 +62,10 @@ external_url 'GENERATED_EXTERNAL_URL'
|
|||
#
|
||||
# gitlab_rails['incoming_email_log_directory'] = "/var/log/gitlab/mailroom"
|
||||
|
||||
## Git LFS
|
||||
# gitlab_rails['lfs_enabled'] = true
|
||||
# gitlab_rails['lfs_storage_path'] = "/mnt/storage/lfs-objects"
|
||||
|
||||
## For setting up LDAP
|
||||
## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#setting-up-ldap-sign-in
|
||||
## Be careful not to break the identation in the ldap_servers block. It is in
|
||||
|
|
|
@ -95,6 +95,8 @@ default['gitlab']['gitlab-rails']['incoming_email_email'] = nil
|
|||
default['gitlab']['gitlab-rails']['incoming_email_password'] = nil
|
||||
default['gitlab']['gitlab-rails']['incoming_email_mailbox_name'] = nil
|
||||
default['gitlab']['gitlab-rails']['incoming_email_log_directory'] = "/var/log/gitlab/mailroom"
|
||||
default['gitlab']['gitlab-rails']['lfs_enabled'] = false
|
||||
default['gitlab']['gitlab-rails']['lfs_storage_path'] = nil
|
||||
default['gitlab']['gitlab-rails']['ldap_enabled'] = false
|
||||
default['gitlab']['gitlab-rails']['ldap_servers'] = []
|
||||
|
||||
|
|
|
@ -107,6 +107,12 @@ production: &base
|
|||
# The mailbox where incoming mail will end up. Usually "inbox".
|
||||
mailbox: <%= single_quote(@incoming_email_mailbox_name) %>
|
||||
|
||||
## Git LFS
|
||||
lfs:
|
||||
enabled: <%= @lfs_enabled %>
|
||||
# The location where LFS objects are stored (default: shared/lfs-objects).
|
||||
storage_path: <%= @lfs_storage_path %>
|
||||
|
||||
## Gravatar
|
||||
## For Libravatar see: http://doc.gitlab.com/ce/customization/libravatar.html
|
||||
gravatar:
|
||||
|
|
|
@ -149,6 +149,13 @@ server {
|
|||
proxy_pass http://gitlab;
|
||||
}
|
||||
|
||||
location ~ ^/[\w\.-]+/[\w\.-]+/gitlab-lfs/objects {
|
||||
client_max_body_size 0;
|
||||
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||
error_page 418 = @gitlab-workhorse;
|
||||
return 418;
|
||||
}
|
||||
|
||||
location ~ ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ {
|
||||
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||
error_page 418 = @gitlab-workhorse;
|
||||
|
@ -167,6 +174,22 @@ server {
|
|||
return 418;
|
||||
}
|
||||
|
||||
# Build artifacts should be submitted to this location
|
||||
location ~ ^/[\w\.-]+/[\w\.-]+/builds/download {
|
||||
client_max_body_size 0;
|
||||
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||
error_page 418 = @gitlab-workhorse;
|
||||
return 418;
|
||||
}
|
||||
|
||||
# Build artifacts should be submitted to this location
|
||||
location ~ /ci/api/v1/builds/[0-9]+/artifacts {
|
||||
client_max_body_size 0;
|
||||
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||
error_page 418 = @gitlab-workhorse;
|
||||
return 418;
|
||||
}
|
||||
|
||||
location @gitlab-workhorse {
|
||||
## If you use HTTPS make sure you disable gzip compression
|
||||
## to be safe against BREACH attack.
|
||||
|
|
Loading…
Reference in New Issue