日志记录节点切换的信息,缓存没有必要太大

This commit is contained in:
zjcqoo 2019-05-10 11:12:59 +08:00
parent d8abb31254
commit 4bc6a9476a

View File

@ -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
;