/images/avatar-home.jpeg

nginx反代cloudflare出现502错误问题

如果是自己的域名在反代配置加上这2句就可以了。

proxy_ssl_name $host;  
proxy_ssl_server_name on;

我自己的配置是

location / {  
        proxy_pass https://域名;  
        #Proxy Settings  
        proxy_redirect off;  
        proxy_set_header Host $host;  
        proxy_set_header  X-Real-IP  $remote_addr;  
        proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;  
        proxy_ssl_name $host;  
        proxy_ssl_server_name on;  
        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;  
        # proxy_max_temp_file_size 0;  
        proxy_connect_timeout 90;  
        proxy_send_timeout  90;  
        proxy_read_timeout 90;  
        proxy_buffer_size 64k;  
        proxy_buffers  32 32k;  
        proxy_busy_buffers_size 128k;  
        proxy_temp_file_write_size 64k;  
}

esxi6.7 与 pve6 unixbench跑分对比

新建的虚拟机下同配置跑的分,均开启了host。配置为 8C8G50G。

ESXI6.7

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #  
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #  
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######  
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #  
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #  
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #  
   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark  
   Multi-CPU version                  Version 5 revisions by Ian Smith,  
                                      Sunnyvale, CA, USA  
   January 13, 2011                   johantheghost at yahoo period com  
Wide character in print at ./Run line 1511.  
Wide character in printf at ./Run line 1542.  
1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10  
1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10  
1 x Execl Throughput  1 2 3  
1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3  
1 x File Copy 256 bufsize 500 maxblocks  1 2 3  
1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3  
1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10  
1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10  
1 x Process Creation  1 2 3  
1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10  
1 x Shell Scripts (1 concurrent)  1 2 3  
1 x Shell Scripts (8 concurrent)  1 2 3  
Wide character in printf at ./Run line 1484.  
8 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10  
8 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10  
8 x Execl Throughput  1 2 3  
8 x File Copy 1024 bufsize 2000 maxblocks  1 2 3  
8 x File Copy 256 bufsize 500 maxblocks  1 2 3  
8 x File Copy 4096 bufsize 8000 maxblocks  1 2 3  
8 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10  
8 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10  
8 x Process Creation  1 2 3  
8 x System Call Overhead  1 2 3 4 5 6 7 8 9 10  
8 x Shell Scripts (1 concurrent)  1 2 3  
8 x Shell Scripts (8 concurrent)  1 2 3  
Wide character in printf at ./Run line 1484.  
========================================================================  
   BYTE UNIX Benchmarks (Version 5.1.3)  
   System: debian: GNU/Linux  
   OS: GNU/Linux -- 4.19.0-5-amd64 -- #1 SMP Debian 4.19.37-5 (2019-06-19)  
   Machine: x86_64 (unknown)  
   Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")  
   CPU 0: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 1: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 2: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 3: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 4: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 5: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 6: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   CPU 7: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization  
   01:35:22 up  1:33,  2 users,  load average: 3.18, 3.77, 2.12; runlevel  
------------------------------------------------------------------------  
Benchmark Run: 一 8月 10 2020 01:35:22 - 02:02:31  
8 CPUs in system; running 1 parallel copy of tests  
Dhrystone 2 using register variables       37275700.7 lps   (10.0 s, 7 samples)  
Double-Precision Whetstone                     5654.1 MWIPS (6.2 s, 7 samples)  
Execl Throughput                               4156.3 lps   (30.0 s, 2 samples)  
File Copy 1024 bufsize 2000 maxblocks        697111.7 KBps  (30.0 s, 2 samples)  
File Copy 256 bufsize 500 maxblocks          187842.5 KBps  (30.0 s, 2 samples)  
File Copy 4096 bufsize 8000 maxblocks       2194571.2 KBps  (30.0 s, 2 samples)  
Pipe Throughput                              985672.0 lps   (10.0 s, 7 samples)  
Pipe-based Context Switching                  46277.6 lps   (10.0 s, 7 samples)  
Process Creation                               2855.4 lps   (30.0 s, 2 samples)  
Shell Scripts (1 concurrent)                   4167.8 lpm   (60.0 s, 2 samples)  
Shell Scripts (8 concurrent)                   1955.7 lpm   (60.0 s, 2 samples)  
System Call Overhead                         688554.4 lps   (10.0 s, 7 samples)  
System Benchmarks Index Values               BASELINE       RESULT    INDEX  
Dhrystone 2 using register variables         116700.0   37275700.7   3194.1  
Double-Precision Whetstone                       55.0       5654.1   1028.0  
Execl Throughput                                 43.0       4156.3    966.6  
File Copy 1024 bufsize 2000 maxblocks          3960.0     697111.7   1760.4  
File Copy 256 bufsize 500 maxblocks            1655.0     187842.5   1135.0  
File Copy 4096 bufsize 8000 maxblocks          5800.0    2194571.2   3783.7  
Pipe Throughput                               12440.0     985672.0    792.3  
Pipe-based Context Switching                   4000.0      46277.6    115.7  
Process Creation                                126.0       2855.4    226.6  
Shell Scripts (1 concurrent)                     42.4       4167.8    983.0  
Shell Scripts (8 concurrent)                      6.0       1955.7   3259.4  
System Call Overhead                          15000.0     688554.4    459.0  
                                                                   ========  
System Benchmarks Index Score                                         974.5  
------------------------------------------------------------------------  
Benchmark Run: 一 8月 10 2020 02:02:31 - 02:29:45  
8 CPUs in system; running 8 parallel copies of tests  
Dhrystone 2 using register variables      272463301.5 lps   (10.0 s, 7 samples)  
Double-Precision Whetstone                    41703.8 MWIPS (6.5 s, 7 samples)  
Execl Throughput                              23978.3 lps   (30.0 s, 2 samples)  
File Copy 1024 bufsize 2000 maxblocks        979782.2 KBps  (30.0 s, 2 samples)  
File Copy 256 bufsize 500 maxblocks          263271.7 KBps  (30.0 s, 2 samples)  
File Copy 4096 bufsize 8000 maxblocks       3177481.5 KBps  (30.0 s, 2 samples)  
Pipe Throughput                             7084002.7 lps   (10.0 s, 7 samples)  
Pipe-based Context Switching                1632492.5 lps   (10.0 s, 7 samples)  
Process Creation                              43134.3 lps   (30.0 s, 2 samples)  
Shell Scripts (1 concurrent)                  44920.5 lpm   (60.0 s, 2 samples)  
Shell Scripts (8 concurrent)                   6769.3 lpm   (60.0 s, 2 samples)  
System Call Overhead                        4393974.7 lps   (10.0 s, 7 samples)  
System Benchmarks Index Values               BASELINE       RESULT    INDEX  
Dhrystone 2 using register variables         116700.0  272463301.5  23347.3  
Double-Precision Whetstone                       55.0      41703.8   7582.5  
Execl Throughput                                 43.0      23978.3   5576.3  
File Copy 1024 bufsize 2000 maxblocks          3960.0     979782.2   2474.2  
File Copy 256 bufsize 500 maxblocks            1655.0     263271.7   1590.8  
File Copy 4096 bufsize 8000 maxblocks          5800.0    3177481.5   5478.4  
Pipe Throughput                               12440.0    7084002.7   5694.5  
Pipe-based Context Switching                   4000.0    1632492.5   4081.2  
Process Creation                                126.0      43134.3   3423.4  
Shell Scripts (1 concurrent)                     42.4      44920.5  10594.5  
Shell Scripts (8 concurrent)                      6.0       6769.3  11282.1  
System Call Overhead                          15000.0    4393974.7   2929.3  
                                                                   ========  
System Benchmarks Index Score                                        5383.8  
======= Script description and score comparison completed! =======

PVE6.2

make[1]: Leaving directory '/opt/unixbench/UnixBench'  
locale: Cannot set LC_CTYPE to default locale: No such file or directory  
locale: Cannot set LC_MESSAGES to default locale: No such file or directory  
locale: Cannot set LC_ALL to default locale: No such file or directory  
locale: Cannot set LC_CTYPE to default locale: No such file or directory  
locale: Cannot set LC_MESSAGES to default locale: No such file or directory  
locale: Cannot set LC_ALL to default locale: No such file or directory  
sh: 1: 3dinfo: not found  
sh: 1: runlevel: not found  
   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #  
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #  
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######  
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #  
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #  
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #  
   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark  
   Multi-CPU version                  Version 5 revisions by Ian Smith,  
                                      Sunnyvale, CA, USA  
   January 13, 2011                   johantheghost at yahoo period com  
Wide character in print at ./Run line 1511.  
Wide character in printf at ./Run line 1542.  
1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10  
1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10  
1 x Execl Throughput  1 2 3  
1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3  
1 x File Copy 256 bufsize 500 maxblocks  1 2 3  
1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3  
1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10  
1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10  
1 x Process Creation  1 2 3  
1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10  
1 x Shell Scripts (1 concurrent)  1 2 3  
1 x Shell Scripts (8 concurrent)  1 2 3  
Wide character in printf at ./Run line 1484.  
8 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10  
8 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10  
8 x Execl Throughput  1 2 3  
8 x File Copy 1024 bufsize 2000 maxblocks  1 2 3  
8 x File Copy 256 bufsize 500 maxblocks  1 2 3  
8 x File Copy 4096 bufsize 8000 maxblocks  1 2 3  
8 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10  
8 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10  
8 x Process Creation  1 2 3  
8 x System Call Overhead  1 2 3 4 5 6 7 8 9 10  
8 x Shell Scripts (1 concurrent)  1 2 3  
8 x Shell Scripts (8 concurrent)  1 2 3  
Wide character in printf at ./Run line 1484.  
========================================================================  
   BYTE UNIX Benchmarks (Version 5.1.3)  
   System: debian: GNU/Linux  
   OS: GNU/Linux -- 4.19.0-5-amd64 -- #1 SMP Debian 4.19.37-5 (2019-06-19)  
   Machine: x86_64 (unknown)  
   Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")  
   CPU 0: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 1: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 2: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 3: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 4: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 5: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 6: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   CPU 7: Intel(R) Xeon(R) CPU E5-2696 v2 @ 2.50GHz (5000.0 bogomips)  
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET  
   11:14:36 up 3 min,  2 users,  load average: 0.57, 0.19, 0.06; runlevel  
------------------------------------------------------------------------  
Benchmark Run: 二 8月 11 2020 11:14:36 - 11:42:00  
8 CPUs in system; running 1 parallel copy of tests  
Dhrystone 2 using register variables       38457773.2 lps   (10.0 s, 7 samples)  
Double-Precision Whetstone                     5894.1 MWIPS (7.7 s, 7 samples)  
Execl Throughput                               3653.5 lps   (30.0 s, 2 samples)  
File Copy 1024 bufsize 2000 maxblocks        594688.8 KBps  (30.0 s, 2 samples)  
File Copy 256 bufsize 500 maxblocks          155116.1 KBps  (30.0 s, 2 samples)  
File Copy 4096 bufsize 8000 maxblocks       2093652.8 KBps  (30.0 s, 2 samples)  
Pipe Throughput                              840578.6 lps   (10.0 s, 7 samples)  
Pipe-based Context Switching                  69113.8 lps   (10.0 s, 7 samples)  
Process Creation                               2092.7 lps   (30.0 s, 2 samples)  
Shell Scripts (1 concurrent)                   3592.3 lpm   (60.0 s, 2 samples)  
Shell Scripts (8 concurrent)                   1596.2 lpm   (60.0 s, 2 samples)  
System Call Overhead                         661908.8 lps   (10.0 s, 7 samples)  
System Benchmarks Index Values               BASELINE       RESULT    INDEX  
Dhrystone 2 using register variables         116700.0   38457773.2   3295.4  
Double-Precision Whetstone                       55.0       5894.1   1071.7  
Execl Throughput                                 43.0       3653.5    849.6  
File Copy 1024 bufsize 2000 maxblocks          3960.0     594688.8   1501.7  
File Copy 256 bufsize 500 maxblocks            1655.0     155116.1    937.3  
File Copy 4096 bufsize 8000 maxblocks          5800.0    2093652.8   3609.7  
Pipe Throughput                               12440.0     840578.6    675.7  
Pipe-based Context Switching                   4000.0      69113.8    172.8  
Process Creation                                126.0       2092.7    166.1  
Shell Scripts (1 concurrent)                     42.4       3592.3    847.2  
Shell Scripts (8 concurrent)                      6.0       1596.2   2660.3  
System Call Overhead                          15000.0     661908.8    441.3  
                                                                   ========  
System Benchmarks Index Score                                         903.0  
------------------------------------------------------------------------  
Benchmark Run: 二 8月 11 2020 11:42:00 - 12:09:16  
8 CPUs in system; running 8 parallel copies of tests  
Dhrystone 2 using register variables      279669766.0 lps   (10.0 s, 7 samples)  
Double-Precision Whetstone                    41943.0 MWIPS (6.3 s, 7 samples)  
Execl Throughput                              18412.5 lps   (30.0 s, 2 samples)  
File Copy 1024 bufsize 2000 maxblocks        488871.1 KBps  (30.0 s, 2 samples)  
File Copy 256 bufsize 500 maxblocks          126347.3 KBps  (30.0 s, 2 samples)  
File Copy 4096 bufsize 8000 maxblocks       1596495.9 KBps  (30.0 s, 2 samples)  
Pipe Throughput                             6013413.0 lps   (10.0 s, 7 samples)  
Pipe-based Context Switching                 967469.4 lps   (10.0 s, 7 samples)  
Process Creation                              25260.2 lps   (30.0 s, 2 samples)  
Shell Scripts (1 concurrent)                  37695.0 lpm   (60.0 s, 2 samples)  
Shell Scripts (8 concurrent)                   5645.7 lpm   (60.0 s, 2 samples)  
System Call Overhead                        3703628.1 lps   (10.0 s, 7 samples)  
System Benchmarks Index Values               BASELINE       RESULT    INDEX  
Dhrystone 2 using register variables         116700.0  279669766.0  23964.8  
Double-Precision Whetstone                       55.0      41943.0   7626.0  
Execl Throughput                                 43.0      18412.5   4282.0  
File Copy 1024 bufsize 2000 maxblocks          3960.0     488871.1   1234.5  
File Copy 256 bufsize 500 maxblocks            1655.0     126347.3    763.4  
File Copy 4096 bufsize 8000 maxblocks          5800.0    1596495.9   2752.6  
Pipe Throughput                               12440.0    6013413.0   4833.9  
Pipe-based Context Switching                   4000.0     967469.4   2418.7  
Process Creation                                126.0      25260.2   2004.8  
Shell Scripts (1 concurrent)                     42.4      37695.0   8890.3  
Shell Scripts (8 concurrent)                      6.0       5645.7   9409.4  
System Call Overhead                          15000.0    3703628.1   2469.1  
                                                                   ========  
System Benchmarks Index Score                                        3825.7  
======= Script description and score comparison completed! =======

https://img.qyi.io/images/2020/08/11/image7f4ca00d2f14f750.png

记录IDRAC断电恢复上一次配置(密码)的问题

https://blog.curlc.com/archives/595.html
这台机器买来后idrac有一个问题,只要断电,idrac的密码就会被恢复为上一次设置的密码.如果在bios重置密码也会被“永久”的设置成calvin这个默认密码。
所以特别蛋疼,每次断电开机完就得修改密码,在dell社区问过一次,答复居然是“一般服务器是不会断电”,真的是无语了……

昨天由于折腾ssl把idrac搞挂了,这次断电也没有恢复,就进bios重置了idrac(恢复出厂设置)后居然就好了,断电密码被“重置”这个问题也就没了,但是我记得有一次我也重置过,但是没用,总之,这是一个奇葩的问题~

https://img.qyi.io/images/2020/08/08/imageffc0305f57c4c4b0.png

office e5 常见问题

  1. 查看剩余天数(使用申请的e5账户登录)
    https://developer.microsoft.com/zh-cn/microsoft-365/dev-program
    https://developer.microsoft.com/zh-cn/microsoft-365/profile

  2. Office管理界面组织管理号登录
    www.office.com/?auth=2

  3. admin管理中心
    https://admin.microsoft.com Microsoft 365

  4. Onedrive容量 1T 修改 为5T,老帐号不删除重建
    https://blog.curlc.com/archives/66.html

  5. 你没有访问此服务的权限。请联系你的IT部门以获取帮助。(错误代码:0x8004e4d1)
    这种一般是你没有给这个账号许可证。

  6. 自动续期时间
    目前(2020-07-20)调用api情况下, 一般在最后30天以内就会进行续期3个月。

  7. 不注意点击了取消订阅
    (来自读者的反馈)万一手残,还没订阅还没到期就点了取消订阅,显示已禁用,仪表板显示已到期,有这样情况的话,进入office管理界面网站,可以跟微软客服沟通下,他们会手动帮你重新订阅上,只不过, 仪表板还是会显示已到期(这个解决办法是,点击上面的三角形,看到“错过xxx”那个地方,要跟微软写个反馈,反馈你目前的开发进度,用纯英文写,提交之后,看微软审核,审核通过,仪表板就会重新显示剩余天数了)

  8. 如何创建子号
    https://admin.microsoft.com/Adminportal/Home?source=applauncher#/users

 
以上信息来自于群成员于读者反馈,部分已知名单如下(为保护隐私,已隐藏部分关键字):
 
Skyler 942****459
peakgymnast 隐藏
vivi fr**@163.com

Docker快速搭建Firefox Send

1、安装Docker

此命令我在debian中运行没问题,其他系统自测~

wget -qO- https://get.docker.com/ | sh

2、创建docker网络

请参考此文章
https://blog.curlc.com/archives/618.html

3、Docker安装Redis

其中的 –net 参数,就是刚刚建立的docker网络(内网)

docker run --name docker-redis-server  --restart=always --net=my_network -d redis redis-server --appendonly yes

3、docker安装启动Firedox Send

docker run --net=my_network --restart=always -e 'REDIS_HOST=docker-redis-server' -e 'NODE_ENV=production' -p 1443:1443 -d mozilla/send:latest

4、Nginx反向代理

这一步网上有很多教程,就不重复的写了。
需要注意的是,必须启用https。

# 配置反向代理  
        location / {  
                proxy_pass http://127.0.0.1:1443;  
                proxy_set_header Connection "upgrade";  
                proxy_set_header Upgrade $http_upgrade;  
                proxy_set_header Host      $host;  
                proxy_set_header X-Real-IP $remote_addr;  
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
        }

  https://img.qyi.io/images/2020/06/09/image3a5ce15c8656ba4e.png

Fiddler无法解密https请求解决方法

背景

The selected session is a HTTP CONNECT Tunnel.
所选的会话是 HTTP CONNECT 隧道。 该隧道使客户端能够通过 HTTP…….

 
https抓包出现这个标识无法解密https会话,证书存储区中可能有一些旧的Fiddler证书,由于某些原因(比如升级版本,更换版本后重新生成证书),这些证书在重置期间未清除,所以需要手动进行清除旧证书。
 

解决方法

  1. 请确保未选中Fiddler的HTTPS选项中的“解密HTTPS通信”复选框,然后关闭Fiddler。
  2. 然后在Windows的任务栏搜索框中,键入“管理用户证书”,然后按Enter。当前用户的证书管理器将打开。
    找到所有颁发者:DO_NOT_TRUST_FiddlerRoot并删除它们。请小心不要删除任何其他证书。
  3. 如果您具有管理权限,请在Windows的任务栏搜索框中键入“管理计算机证书”。本地计算机的证书管理器将打开。
    找到所有颁发者:DO_NOT_TRUST_FiddlerRoot并删除它们。请小心不要删除任何其他证书。
  4. 打开Fiddler,然后选中“解密HTTPS流量”复选框。将会出现一些提示,要求信任新生成的CA证书。信任证书,然后重新启动Fiddler。

大概由3个地方需要进行删除,注意点别删到其他证书就好~

https://img.qyi.io/images/2020/05/18/chrome_obuPTJPoHZfcd0057c49ce76fd.png

https://img.qyi.io/images/2020/05/18/DwF17ExGb7e9c4a976c3a2a9e4.png

参考文章:
https://www.telerik.com/forums/system-security-cryptography-cryptographicexception#FayHvD9zcUGARfM-gi4pyA
https://www.telerik.com/forums/https-decryption-does-not-work