mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Add possibility to set the client_body_max_size for gitlab_ci
This commit is contained in:
parent
0fcf1a4d0b
commit
ac7a664479
@ -829,6 +829,7 @@ Below is the complete list of available options that can be used to customize yo
|
||||
- **NGINX_PROXY_BUFFERING**: Enable `proxy_buffering`. Defaults to `off`.
|
||||
- **NGINX_ACCEL_BUFFERING**: Enable `X-Accel-Buffering` header. Default to `no`
|
||||
- **NGINX_X_FORWARDED_PROTO**: Advanced configuration option for the `proxy_set_header X-Forwarded-Proto` setting in the gitlab nginx vHost configuration. Defaults to `https` when `GITLAB_HTTPS` is `true`, else defaults to `$scheme`.
|
||||
- **NGINX_GITLAB_CI_CLIENT_MAX_BODY_SIZE**: Sets the client_max_body_size of GitLab CI. `$GITLAB_CI_HOST` must be set to get this working. This could be used for large logs or artifacts that are greater than the default. Defaults to `10m` .
|
||||
- **REDIS_HOST**: The hostname of the redis server. Defaults to `localhost`
|
||||
- **REDIS_PORT**: The connection port of the redis server. Defaults to `6379`.
|
||||
- **UNICORN_WORKERS**: The number of unicorn workers to start. Defaults to `3`.
|
||||
|
||||
@ -24,5 +24,5 @@ server {
|
||||
|
||||
# adjust this to match the largest build log your runners might submit,
|
||||
# set to 0 to disable limit
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size {{NGINX_GITLAB_CI_CLIENT_MAX_BODY_SIZE}};
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ case ${GITLAB_HTTPS} in
|
||||
true) NGINX_X_FORWARDED_PROTO=${NGINX_X_FORWARDED_PROTO:-https} ;;
|
||||
*) NGINX_X_FORWARDED_PROTO=${NGINX_X_FORWARDED_PROTO:-\$scheme} ;;
|
||||
esac
|
||||
|
||||
NGINX_GITLAB_CI_CLIENT_MAX_BODY_SIZE=${NGINX_GITLAB_CI_CLIENT_MAX_BODY_SIZE:-10m}
|
||||
## MAIL DELIVERY
|
||||
SMTP_DOMAIN=${SMTP_DOMAIN:-www.gmail.com}
|
||||
SMTP_HOST=${SMTP_HOST:-smtp.gmail.com}
|
||||
|
||||
@ -839,7 +839,8 @@ nginx_configure_gitlab_ci() {
|
||||
GITLAB_LOG_DIR \
|
||||
GITLAB_HOST \
|
||||
GITLAB_CI_HOST \
|
||||
DNS_RESOLVERS
|
||||
DNS_RESOLVERS \
|
||||
NGINX_GITLAB_CI_CLIENT_MAX_BODY_SIZE
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user