Skip to content

V2Ray Shadowsocks plugin

Ycarus (Yannick Chabanois) edited this page Apr 19, 2019 · 1 revision

Using Nginx with v2ray plugin:

server {
        listen       443 ssl;
        listen       [::]:443 ssl;
        #server_name  _;
        server_name  toto.com;     # Your domain.
        root         /usr/share/nginx/html/;
        ssl_certificate "/root/.acme.sh/toto.com/fullchain.cer"; # Path to certificate
        ssl_certificate_key "/root/.acme.sh/toto.com/toto.com.key";     # Path to private key
        ssl_session_cache shared:SSL:1m;
        ssl_session_timeout  10m;
        ssl_ciphers HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;
        location / {
            proxy_redirect off;
            proxy_http_version 1.1;
            proxy_pass http://localhost:65101;
            proxy_set_header Host $http_host;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
}