diff --git a/Other/nginx-tengine-3.1.0/Dockerfile b/Other/nginx-tengine-3.1.0/Dockerfile index aac37f5..c858da0 100644 --- a/Other/nginx-tengine-3.1.0/Dockerfile +++ b/Other/nginx-tengine-3.1.0/Dockerfile @@ -42,6 +42,7 @@ RUN yum install \ --with-stream_realip_module \ --with-pcre-jit; \ make && make install; \ + mkdir -p ${NGINX_HOME}/conf/ssl ${NGINX_HOME}/conf/conf.d; \ nginx -V; \ rm -rf /home/admin/tengine-${TENGINE_VERSION} /home/admin/tengine-${TENGINE_VERSION}.tar.gz # tengine 默认以 nobody 用户运行 worker 进程,root 启动后自动降权,可直接监听 80/443 diff --git a/Other/nginx-tengine-3.1.0/nginx.conf b/Other/nginx-tengine-3.1.0/nginx.conf index e69de29..c34210e 100644 --- a/Other/nginx-tengine-3.1.0/nginx.conf +++ b/Other/nginx-tengine-3.1.0/nginx.conf @@ -0,0 +1,22 @@ +user root; +worker_processes auto; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + log_format main '"$http_x_forwarded_for" $remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for" "$upstream_addr"'; + #access_log logs/access.log main; + sendfile on; + keepalive_timeout 65; + # 调优: 32的倍数 + proxy_headers_hash_max_size 51200; + proxy_headers_hash_bucket_size 6400; + client_max_body_size 1200m; + include /usr/local/nginx/conf/conf.d/*.conf; +} \ No newline at end of file