Tengine重新部署之后似乎日志也还是和之前差不多的?有 error_log,include user.conf;
worker_rlimit_nofile 100000;
error_log "pipe:/opt/taobao/install/cronolog/sbin/cronolog logs/cronolog/%Y/%m/%Y-%m-%d-error_log" debug;
pid logs/tengine-proxy.pid;
events {
use epoll;
worker_connections 20480;
}
processes {
process vipserver {} #启动独立进程
}
http {
vipserver_nameserver jmenv.tbsite.net:8080; #地址服务器(区分环境)
vipserver_backup_path /home/admin/cai/conf/backup/; #备份文件路径,可选择其他路径
vipserver_apps_interval 10s; #机器列表检查更新周期
geo $limited{
default 1;
include geo.conf;
}
map $limited $limit {
1 $binary_remote_addr;
0 "";
}
# 应安全的要求需要接入霸下,https://yuque.antfin-inc.com/security-base/x-doc-open/install
include sec_http.conf;
server_default_include sec_loc.conf;
include mime.types;
default_type application/octet-stream;
root htdocs;
sendfile on;
tcp_nopush on;
server_tokens off;
keepalive_timeout 65;
client_header_timeout 3m;
send_timeout 3m;
client_max_body_size 5120m;
client_body_buffer_size 2560m;
client_body_temp_path data/client_body;
limit_req_zone $limit zone=req:20m rate=500r/s;
limit_req zone=req burst=100;
limit_conn_zone $binary_remote_addr zone=perip:20m;
limit_conn perip 100;
limit_req_status 429;
limit_conn_status 429;
index index.html index.htm;
log_format proxyformat "$remote_addr $request_time_usec $http_x_readtime [$time_local] \"$request_method http://$host$request_uri\" $status $body_bytes_sent \"$http_referer\" \"$upstream_addr\" \"$http_user_agent\" \"$cookie_unb\" \"$cookie_cookie2\" \"$eagleeye_traceid\"";
access_log "pipe:/opt/taobao/install/cronolog/sbin/cronolog logs/cronolog/%Y/%m/%Y-%m-%d-taobao-access_log" proxyformat;
error_log "pipe:/opt/taobao/install/cronolog/sbin/cronolog logs/cronolog/%Y/%m/%Y-%m-%d-error_log" debug;
log_not_found off;
# lua entry
init_by_lua_file "/opt/taobao/tengine/conf/init_by_lua_file.lua";
gzip on;
gzip_http_version 1.0;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_proxied any;
gzip_vary on;
gzip_disable msie6;
gzip_buffers 96 8k;
gzip_types text/xml text/plain text/css application/javascript application/x-javascript application/rss+xml application/json;
# taobao trans
trans_cookie_name _lang;
trans_cookie_trans_value zh_CN:TB-GBK;
trans_cookie_nottrans_value zh_CN:GBK;
trans_ip_file ip.dat;
trans_code_file sm2tr.txt;
trans_content_type application/xhtml+xml text/plain text/css text/xml text/javascript;
trans_accept_language_trans zh-HK zh-TW zh-MO zh-Hant;
trans_accept_language_notrans zh-CN zh-SG zh-Hans;
eagleeye_traceid_var $eagleeye_traceid;
eagleeye_traceid_arg tb_eagleeye_traceid;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Web-Server-Type nginx;
proxy_set_header WL-Proxy-Client-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header EagleEye-TraceId $eagleeye_traceid;
proxy_redirect off;
proxy_buffers 128 8k;
proxy_temp_path data/proxy;
proxy_intercept_errors on;
#include services.conf;
#include cell_main.conf;
# fight mhtml/utf-7 bug
hat_content "\r\n";
hat_types text/html text/css;
# waf, fight hashdos attack
#waf_max_post_params 1000;
#waf_max_args 1000;
#waf_max_cookies 1000;
#waf_post_delimiter_maxlen 70;
# detector
#tesla on;
#tsl_inject_tail on;
#tsl_med on;
#tsl_med_cookie _med;
#tsl_med_jspath med.js;
#user_agent_detector on;
#include detector.conf;
# sinfo
#include sinfo.conf;
variables_hash_max_size 1024;
variables_hash_bucket_size 64;
server_names_hash_bucket_size 4096;
server {
listen 80;
server_name status.taobao.com;
tmd off;
location = /status.taobao {
root /home/admin/cai/htdocs;
}
location = /nginx_status {
stub_status on;
}
}
include apps/*.conf;
}
一个更加明显的例子:curl --location --request PUT 'https://daily-code.alibaba-inc.com/adl/lfs-test-repo2.git/info/lfs/objects/fcac6f56113d2923b67739da64b92793b7254c855e84de801e4b6c6bdd8e2f2a/3145728000' \
--header 'Authorization: RemoteAuth Y2Y5NWJiMjE4YjlhM2RjYzljZjZhNDI4ZDlhNDVjMDk1MTdmMDE1NgrpmL/lvrfng4gKNDQKMTcxMzE2ODQ2Nw==' \
--header 'Content-Type: application/octet-stream' \
-T '/tmp/int_more'
curl: (55) LibreSSL SSL_write: Broken pipe, errno 32
回头把你机器上11.164.249.158的
恢复一下 ,此回答整理自钉群“Tengine和Tengine-Ingress开源交流群”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。