IP被封庆祝十一

由于XX发威,不得不改用其他软件

以下是一些nginx配置文件(端口后面一定要加斜杠)
一定要启用mux多路复用,这个功能不启用会出现奇怪错误!

server {
  listen  443 ssl;
  ssl on;
  ssl_certificate       /root/example.com.crt; #crt证书路径
  ssl_certificate_key   /root/example.com.key; #key证书路径
  ssl_protocols         TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers           HIGH:!aNULL:!MD5;
  server_name           example.com;
        location /nginx {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:10000/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
        }
}

grpc设置h2c通讯,必须禁用MUX
 location /nginx {
        grpc_pass grpc://127.0.0.1:1000;
      grpc_ignore_headers X-Accel-Redirect;
        grpc_set_header Host $http_host;

        }
Z2l0IGNsb25lIGh0dHBzOi8vZ2l0aHViLmNvbS9QaW5hbmNoZW4vVjJyYXktYXV0byAtYiBtYXN0ZXIKY2QgVjJyYXktYXV0bwpjaG1vZCAreCBpbnN0YWxsLnNoCmVjaG8gPiAuL2NvbmZpZy9zZXJ2ZXIvaW5jbHVkZS9iYW4uanNvbgplY2hvID4gLi9zcmMvYmFuX3h4LnNoCnNlZCAtaSAnc0AkdGVzdF9kb21haW5AJGlwQCcgLi92MnJheS5zaApzZWQgLWkgJ3NAJHRlc3RfZG9tYWluQCRpcEAnIC4vaW5zdGFsbC5zaApzZWQgLWkgJ3NAInNlY3VyaXR5IkAvLyJzZWN1cml0eSJAJyAuL3RlbXBsYXRlcy9oMi5qc29uCnNlZCAtaSAnc0Aic2VjdXJpdHkiQC8vInNlY3VyaXR5IkAnIC4vY29uZmlnL3NlcnZlci9oMi5qc29uCi4vaW5zdGFsbC5zaCBsb2NhbA==
chmod +x install.sh
echo > ./config/server/include/ban.json
echo > ./src/ban_xx.sh
./install.sh local

$$备用$$

d2dldCAtTiAtLW5vLWNoZWNrLWNlcnRpZmljYXRlIGh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9DaGVubmhhb28vU1NSUi1CYXNoL21hc3Rlci9TU1Ivc3NybXUuc2ggJiYgY2htb2QgK3ggc3NybXUuc2ggJiYgYmFzaCBzc3JtdS5zaA==

此处评论已关闭