aptly: disable keepalive connection
Disable keepalive connection to avoid build-image error. Testing: - build-image OK Story:2008846 Task: 44749 Signed-off-by: ZhangXiao <xiao.zhang@windriver.com> Change-Id: I0168384f72e27202310bfbb93081154b111cf768
This commit is contained in:
parent
42f8c5172c
commit
c7ed6130b2
@ -67,6 +67,7 @@ COPY stx/toCOPY/aptly/supervisord.aptly.conf /etc/supervisor/conf.d/aptly.conf
|
||||
# Configure Nginx
|
||||
COPY stx/toCOPY/aptly/nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
COPY stx/toCOPY/aptly/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
|
||||
COPY stx/toCOPY/aptly/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Bind mount locations
|
||||
VOLUME [ "/var/aptly" ]
|
||||
|
32
stx/toCOPY/aptly/nginx.conf
Normal file
32
stx/toCOPY/aptly/nginx.conf
Normal file
@ -0,0 +1,32 @@
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 0;
|
||||
|
||||
#gzip on;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user