Nginx配置为:

server {
  listen  443 ssl http2; # 如果你木有添加 HTTP2 模块,请删除 http2
  server_name           xxx.com; # 将 xxx.com 修改成你的域名
  ssl_certificate       /home/ssl/233blog.com.crt; # 证书路径
  ssl_certificate_key   /home/ssl/233blog.com.key; # 密钥路径
  ssl_protocols         TLSv1.1 TLSv1.2 TLSv1.3;
  ssl_ciphers           ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;;
    location / {
    proxy_pass http://localhost:2333; # 2333 为 V2Ray 端口
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    }}

PS:2333测试可用,其他请自测

Last modification:March 12th, 2020 at 02:51 pm
如果觉得我的文章对你有用,请随意赞赏