moved X-Accel-Buffering header inside server block

Closes #417
This commit is contained in:
Sameer Naik 2015-12-13 12:28:09 +05:30
parent 908578b2ce
commit b07697f6ff
2 changed files with 3 additions and 5 deletions

View File

@ -59,6 +59,7 @@ server {
client_max_body_size {{NGINX_MAX_UPLOAD_SIZE}};
## See app/controllers/application_controller.rb for headers set
add_header X-Accel-Buffering {{NGINX_ACCEL_BUFFERING}};
## Individual nginx logs for this GitLab vhost
access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_access.log;
@ -97,7 +98,6 @@ server {
## If you use HTTPS make sure you disable gzip compression
## to be safe against BREACH attack.
# gzip off;
add_header X-Accel-Buffering {{NGINX_ACCEL_BUFFERING}};
## https://github.com/gitlabhq/gitlabhq/issues/694
## Some requests take more than 30 seconds.
@ -164,7 +164,6 @@ server {
## If you use HTTPS make sure you disable gzip compression
## to be safe against BREACH attack.
# gzip off;
add_header X-Accel-Buffering {{NGINX_ACCEL_BUFFERING}};
## https://github.com/gitlabhq/gitlabhq/issues/694
## Some requests take more than 30 seconds.

View File

@ -90,7 +90,8 @@ server {
ssl_session_timeout 5m;
## See app/controllers/application_controller.rb for headers set
add_header Strict-Transport-Security max-age={{NGINX_HSTS_MAXAGE}};
add_header X-Accel-Buffering {{NGINX_ACCEL_BUFFERING}};
add_header Strict-Transport-Security "max-age={{NGINX_HSTS_MAXAGE}};";
## [Optional] If your certficate has OCSP, enable OCSP stapling to reduce the overhead and latency of running SSL.
## Replace with your ssl_trusted_certificate. For more info see:
@ -146,7 +147,6 @@ server {
## If you use HTTPS make sure you disable gzip compression
## to be safe against BREACH attack.
gzip off;
add_header X-Accel-Buffering {{NGINX_ACCEL_BUFFERING}};
## https://github.com/gitlabhq/gitlabhq/issues/694
## Some requests take more than 30 seconds.
@ -214,7 +214,6 @@ server {
## If you use HTTPS make sure you disable gzip compression
## to be safe against BREACH attack.
gzip off;
add_header X-Accel-Buffering {{NGINX_ACCEL_BUFFERING}};
## https://github.com/gitlabhq/gitlabhq/issues/694
## Some requests take more than 30 seconds.