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:
ZhangXiao 2022-03-11 15:37:17 +08:00
parent 42f8c5172c
commit c7ed6130b2
2 changed files with 33 additions and 0 deletions

View File

@ -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" ]

View 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;
}