Xray-examples icon indicating copy to clipboard operation
Xray-examples copied to clipboard

shadowsocks2022+nginx 有配置模板?

Open wpyok500 opened this issue 3 years ago • 4 comments
trafficstars

shadowsocks2022+nginx 有配置模板?

wpyok500 avatar Sep 30 '22 08:09 wpyok500

https://github.com/lxhao61/integrated-examples/tree/main/V2Ray(SS%2BgRPC)%2BNginx%5CCaddy

lxhao61 avatar Sep 30 '22 12:09 lxhao61

@lxhao61

i need template for socks5 with authentication, can you help me?

dugong-lewat avatar Nov 27 '22 12:11 dugong-lewat

@lxhao61

i need template for socks5 with authentication, can you help me?

参考shadowsocks模板即可。

lxhao61 avatar Dec 05 '22 12:12 lxhao61

服务端xray,ngingx都可以正常运行,但客户端无法链接 xray 配置信息

{
  "inbounds": [
    {
    	 "listen": "127.0.0.1",
      "port": 1234,
      "protocol": "shadowsocks",
      "settings": {
        "method": "2022-blake3-aes-128-gcm",
        "password": "F6o7soR9G4HJFSZ9gy8B1Q=="
      },
      "streamSettings": {
        "network": "grpc",
        "security": "none",
        "grpcSettings": {
          "serviceName": "abc.tk"
        }
      },
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom"
    }
  ]
}

nginx配置信息

server
{
    listen 443 ssl http2 so_keepalive=on;
    #配置站点域名,多个以空格分开
    server_name _;
    index index.php index.html index.htm default.php default.htm default.html;
    root /www/xray_web;

    ssl_certificate    /etc/ssl/private/fullchain.cer;
    ssl_certificate_key    /etc/ssl/private/bac.tk.key;
    ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
    ssl_prefer_server_ciphers on; 
    ssl_session_cache shared:SSL:10m;
    ssl_session_timeout 10m;
    add_header Strict-Transport-Security "max-age=31536000";
    error_page 497  https://;

    client_header_timeout 52w;
    keepalive_timeout 52w;

    # 在 location 后填写 /你的 ServiceName
    location /abc.tk {
        if ($content_type !~ "application/grpc") {
            return 404;
        }
        client_max_body_size 0;
        client_body_buffer_size 512k;
        grpc_set_header X-Real-IP $remote_addr;
        client_body_timeout 52w;
        grpc_read_timeout 52w;
        grpc_pass grpc://127.0.0.1:1234;
    }


}

wpyok500 avatar Dec 22 '22 01:12 wpyok500