非常久远的历史腾讯可以免费开通企业邮箱,随时时间的发展,http协议已经不满现在日新月异的需求,而免费的企业邮箱也开始收费,因此把以前的免费邮箱修改一下.
|
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
server { listen 443 quic; listen 443 ssl; http2 on; server_name email.t4x.org; ssl_certificate certificate/t4x_org_fullchain.cer; ssl_certificate_key certificate/t4x_org_cert.key; ssl_protocols TLSv1.3 TLSv1.2; ssl_ciphers 'TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384'; ssl_prefer_server_ciphers on; ssl_ecdh_curve X25519:secp521r1:secp384r1; ssl_session_cache shared:SSL:10m; ssl_session_timeout 1d; ssl_session_tickets off; quic_retry on; quic_gso on; add_header Alt-Svc 'h3=":443"; ma=86400'; # 1. 主站代理配置 location / { proxy_pass http://mail.t4x.org; proxy_set_header Host mail.t4x.org:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Accept-Encoding ""; more_set_headers "X-Content-Type-Options: nosniff"; more_set_headers "X-Frame-Options: SAMEORIGIN"; more_set_headers "X-XSS-Protection: 1; mode=block"; more_set_headers "Referrer-Policy: strict-origin-when-cross-origin"; sub_filter_once off; #sub_filter_types *; sub_filter_types text/html application/javascript; sub_filter 'http://r99.res.qqmail.com' '/local_res'; sub_filter 'http://res.qqmail.com' '/local_res'; sub_filter 'https://r99.res.qqmail.com' '/local_res'; sub_filter 'http://mail.t4x.org' 'https://email.t4x.org'; sub_filter '<title>t4x</title>' '<title>T4X Enterprise Email</title>'; } # 2. 本地静态资源服务配置 location /local_res/ { alias /web/site/mail/; expires 12h; add_header Cache-Control "public"; try_files $uri $uri/ =404; } } |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
