added NGINX_MAX_UPLOAD_SIZE configuration option

This commit is contained in:
Sameer Naik 2014-05-13 14:49:30 +05:30
parent 7e68731f5d
commit 2dd26817a0
6 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**latest**
- added NGINX_MAX_UPLOAD_SIZE configuration to specify the maximum acceptable size of attachments.
**6.8.2**
- upgrade to gitlab-ce 6.8.2
- renamed configuration option GITLAB_SHELL_SSH_PORT to GITLAB_SSH_PORT

View File

@ -579,6 +579,7 @@ Below is the complete list of available options that can be used to customize yo
- **SSL_KEY_PATH**: Location of the ssl private key. Defaults to /home/git/data/certs/gitlab.key
- **SSL_DHPARAM_PATH**: Location of the dhparam file. Defaults to /home/git/data/certs/dhparam.pem
- **CA_CERTIFICATES_PATH**: List of SSL certificates to trust. Defaults to /home/git/data/certs/ca.crt.
- **NGINX_MAX_UPLOAD_SIZE**: Maximum acceptable upload size. Defaults to 20m.
- **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 2.

View File

@ -27,7 +27,7 @@ server {
# Increase this if you want to upload large attachments
# Or if you want to accept large git objects over http
client_max_body_size 20m;
client_max_body_size {{NGINX_MAX_UPLOAD_SIZE}};
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;

View File

@ -27,7 +27,7 @@ server {
# Increase this if you want to upload large attachments
# Or if you want to accept large git objects over http
client_max_body_size 20m;
client_max_body_size {{NGINX_MAX_UPLOAD_SIZE}};
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;
@ -91,7 +91,7 @@ server {
# Increase this if you want to upload large attachments
# Or if you want to accept large git objects over http
client_max_body_size 20m;
client_max_body_size {{NGINX_MAX_UPLOAD_SIZE}};
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;

View File

@ -48,7 +48,7 @@ server {
# Increase this if you want to upload large attachments
# Or if you want to accept large git objects over http
client_max_body_size 20m;
client_max_body_size {{NGINX_MAX_UPLOAD_SIZE}};
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;

View File

@ -24,6 +24,8 @@ CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-/home/git/data/certs/ca.crt}
GITLAB_BACKUPS=${GITLAB_BACKUPS:-disable}
GITLAB_BACKUP_EXPIRY=${GITLAB_BACKUP_EXPIRY:-}
NGINX_MAX_UPLOAD_SIZE=${NGINX_MAX_UPLOAD_SIZE:-20m}
REDIS_HOST=${REDIS_HOST:-}
REDIS_PORT=${REDIS_PORT:-}
@ -194,6 +196,7 @@ sed 's/{{GITLAB_PORT}}/'"${GITLAB_PORT}"'/' -i /etc/nginx/sites-available/gitlab
sed 's,{{SSL_CERTIFICATE_PATH}},'"${SSL_CERTIFICATE_PATH}"',' -i /etc/nginx/sites-available/gitlab
sed 's,{{SSL_KEY_PATH}},'"${SSL_KEY_PATH}"',' -i /etc/nginx/sites-available/gitlab
sed 's,{{SSL_DHPARAM_PATH}},'"${SSL_DHPARAM_PATH}"',' -i /etc/nginx/sites-available/gitlab
sed 's/{{NGINX_MAX_UPLOAD_SIZE}}/'"${NGINX_MAX_UPLOAD_SIZE}"'/g' -i /etc/nginx/sites-available/gitlab
supervisorctl start nginx
echo "Updating CA certificates..."