feature:TSG-15905:新增os适配decoders.HTTP_GZIP和decoders.MAIL_BASE64选项
This commit is contained in:
37
ansible/roles/traffic-engine/files/helm/conf/http_main.conf
Normal file
37
ansible/roles/traffic-engine/files/helm/conf/http_main.conf
Normal file
@@ -0,0 +1,37 @@
|
||||
[FUNCTION]
|
||||
switch_no_biz=1
|
||||
|
||||
#0 means close stat
|
||||
stat_cycle=0
|
||||
#stat output screen 0: screen 1: file
|
||||
stat_screen_print=0
|
||||
stat_file=./log/http/http_stat.log
|
||||
|
||||
#ungzip
|
||||
{{- if eq .Values.decoders.HTTP_GZIP .Values.define_enable_val_yes }}
|
||||
ungzip_switch=1
|
||||
{{- else }}
|
||||
ungzip_switch=0
|
||||
{{- end }}
|
||||
|
||||
#support proxy
|
||||
proxy_switch=1
|
||||
|
||||
#single-way traffic need http session num, 0 means no this function
|
||||
singleway_maxseq=2
|
||||
|
||||
#0: field callback mode(default) 1:batch callback mode
|
||||
callback_mode=0
|
||||
|
||||
#batch field maxnum when http_all or http_other
|
||||
batch_field_maxnum=32
|
||||
|
||||
#check HEAD when s2c one-way
|
||||
s2c_head_check_switch=1
|
||||
|
||||
[LOG]
|
||||
#FATAL:wrong info
|
||||
#INFO: lostlen; special proc ;proxy info
|
||||
#DEBUG: pending and close info; all url;
|
||||
log_level=30
|
||||
log_path=./log/http/runtime
|
||||
24
ansible/roles/traffic-engine/files/helm/conf/mail.conf
Normal file
24
ansible/roles/traffic-engine/files/helm/conf/mail.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
[MODULE]
|
||||
LOG_PATH=./log/mail
|
||||
LOG_LEVEL=20
|
||||
|
||||
#USER_DEFINE_REGION=X-mailer,Message-ID
|
||||
|
||||
#IMAP BODY/BODYSTRUCTURE information
|
||||
HTABLE_SIZE=65536
|
||||
HTABLE_EXPIRE_TIME=1800
|
||||
|
||||
#whether to decode BASE64/QP, 0:OFF, 1:ON(default)
|
||||
{{- if eq .Values.decoders.MAIL_BASE64 .Values.define_enable_val_yes }}
|
||||
TRANS_DECODE_SWITCH=1
|
||||
{{- else }}
|
||||
TRANS_DECODE_SWITCH=0
|
||||
{{- end }}
|
||||
#0: callback biz per packet; 1: callback biz per line(default)
|
||||
CALLBACK_BIZ_LINE=1
|
||||
|
||||
STAT_FIELD_CYCLE=10
|
||||
STAT_FIELD_TRIG=0
|
||||
STAT_FIELD_APPNAME=MAIL_PRO
|
||||
STAT_FIELD_DST_IP=10.10.10.68
|
||||
STAT_FIELD_DST_PORT=8125
|
||||
@@ -149,6 +149,8 @@ enable_breakpad_upload=0
|
||||
cp /opt/tsg/config/vlan_flipping_map.conf /opt/tsg/sapp/etc/vlan_flipping_map.conf
|
||||
cp /opt/tsg/config/firewall.inf /opt/tsg/sapp/plug/business/firewall/firewall.inf
|
||||
cp /opt/tsg/config/necessary_plug_list.conf /opt/tsg/sapp/etc/necessary_plug_list.conf
|
||||
cp /opt/tsg/config/http_main.conf /opt/tsg/sapp/conf/http/http_main.conf
|
||||
cp /opt/tsg/config/mail.conf /opt/tsg/sapp/conf/mail/mail.conf
|
||||
{{- end -}}
|
||||
|
||||
{{- define "traffic-engine.proxy.copy-config-to-dest" -}}
|
||||
|
||||
@@ -17,4 +17,6 @@ data:
|
||||
tsg_device_tag.json: {{ tpl (.Files.Get "conf/tsg_device_tag.json") . | quote }}
|
||||
app_sketch_local.inf: {{ tpl (.Files.Get "conf/app_sketch_local.inf") . | quote }}
|
||||
firewall.inf: {{ tpl (.Files.Get "conf/firewall.inf") . | quote }}
|
||||
necessary_plug_list.conf: {{ tpl (.Files.Get "conf/necessary_plug_list.conf") . | quote }}
|
||||
necessary_plug_list.conf: {{ tpl (.Files.Get "conf/necessary_plug_list.conf") . | quote }}
|
||||
http_main.conf: {{ tpl (.Files.Get "conf/http_main.conf") . | quote }}
|
||||
mail.conf: {{ tpl (.Files.Get "conf/mail.conf") . | quote }}
|
||||
@@ -154,7 +154,9 @@ decoders:
|
||||
DNS: yes
|
||||
QUIC: yes
|
||||
HTTP: yes
|
||||
HTTP_GZIP: yes
|
||||
MAIL: yes
|
||||
MAIL_BASE64: yes
|
||||
FTP: yes
|
||||
SSL: yes
|
||||
RTP: yes
|
||||
|
||||
Reference in New Issue
Block a user