From 4bc6a9476a22351818638e0ed070bc68b14b4f36 Mon Sep 17 00:00:00 2001 From: zjcqoo Date: Fri, 10 May 2019 11:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=88=87=E6=8D=A2=E7=9A=84=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=B2=A1=E6=9C=89=E5=BF=85=E8=A6=81=E5=A4=AA?= =?UTF-8?q?=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nginx.conf b/nginx.conf index d4055eb..1dd3186 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,10 +1,9 @@ http { server { - # server_name example.com; - # ssl_certificate cert/example.com/ecc.cer; - # ssl_certificate_key cert/example.com/ecc.key; - # listen 8443 ssl http2; - listen 8080; + server_name *.etherdream.com; + ssl_certificate cert/etherdream.com/ecc.cer; + ssl_certificate_key cert/etherdream.com/ecc.key; + listen 8443 ssl http2; include api.conf; } @@ -32,8 +31,9 @@ http { # https://nginx.org/en/docs/http/ngx_http_log_module.html # separated by tab (\t) log_format log_proxy escape=none + '01 ' '$time_iso8601 $_origin_id $_ver $remote_addr ' - '$upstream_cache_status $request_time ' + '$_level $_switched $upstream_cache_status $request_time ' '$request_length $bytes_sent ' '$request_method $_url $status $upstream_http_access_control_allow_origin ' '$http_user_agent $_ref $_mode $_type' @@ -44,8 +44,8 @@ http { # 1MB = 8000key proxy_cache_path cache levels=1:2 - keys_zone=my_cache:32m - max_size=20g + keys_zone=my_cache:16m + max_size=2g inactive=6h use_temp_path=off ;