试一下Let’s Encrypt
顺便前几天剁了Alpharacks的辣鸡vps,拿来做前端好了,听说国内效果ping不错(?
因为还有一堆微博图床上的图没法https,所以就不强行301了,你们看心情就好
试一下Let’s Encrypt
顺便前几天剁了Alpharacks的辣鸡vps,拿来做前端好了,听说国内效果ping不错(?
因为还有一堆微博图床上的图没法https,所以就不强行301了,你们看心情就好
原标题:被害妄想症该如何生存
先看配置:
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 50 |
server { listen 80 default_server; listen [::]:80 default_server; listen 443 ssl default_server; root /usr/share/nginx/html; ssl_certificate certs/default.pem; ssl_certificate_key certs/default-nopass.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH; ssl_prefer_server_ciphers on; } server { listen 443 ssl spdy; ssl_certificate certs/real-cert.pem; ssl_certificate_key certs/real-cert-nopass.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH; ssl_prefer_server_ciphers on; root /usr/share/nginx/html; server_name example.com; location / { root /path/to/your/files; if (-d $request_filename) { return 404; } try_files $uri $uri/ =404; charset utf-8; } location ~ .*/$ { root /path/to/your/files; access_by_lua ' local coo = ngx.var.cookie_coo if coo ~= "coo" then ngx.exit(404) end '; autoindex on; autoindex_exact_size off; } } |
假设:
审查机关拥有运营商级别的入侵检测设备(比如GFW)
说明:
博客现在用PHP7了,我再也不用装HHVM了,开心。
你们有没有觉得加载速度变快了或者变慢了呢