|
@@ -1,45 +1,38 @@
|
|
|
-# This is the server config.json example to utilizing V2ray as the server for Shadowsocks + V2Ray Plugin
|
|
|
-> The complete setup also requires a web server to handle the TLS and proxy pass the deciphered request to the backend v2ray server at 127.0.0.1:10000.
|
|
|
-> You can find the web server example at https://guide.v2fly.org/en_US/advanced/wss_and_web.html#server-side-configuration
|
|
|
+# These settings are also compatible with Shadowsocks client + V2Ray-plugin
|
|
|
|
|
|
-中文用户请看 Readme - zh-CN. md
|
|
|
+> The complete setup also requires a web server to handle the TLS and proxy pass the deciphered request to the backend v2ray server listeing on 127.0.0.1:10000.
|
|
|
+> You can find the web server config examples at [https://guide.v2fly.org/en_US/advanced/wss_and_web.html#server-side-configuration](https://guide.v2fly.org/en_US/advanced/wss_and_web.html#server-side-configuration).
|
|
|
|
|
|
-**Choose either one of config_server_redirect.json and config_server_domainsocket.json**
|
|
|
+中文用户请看[这里](./README-CN.md)。
|
|
|
|
|
|
-If you choose to use config_server_domainsocket.json remember to modify the systemd service file @ /etc/systemd/system/v2ray.service.
|
|
|
+## Shadowsocks client configuration examples
|
|
|
|
|
|
-Add the following line to the block starting with [Service]
|
|
|
-```
|
|
|
-RuntimeDirectory=ss-loop
|
|
|
-```
|
|
|
-'ss-loop' corresponds to the "/var/run/ss-loop" folder in the "dsSettings" part of the config.json.
|
|
|
+> You should change the following configurations according to your server configs.
|
|
|
|
|
|
-Execute the following commands to re-enable the v2ray.service.
|
|
|
-```
|
|
|
-systemctl disable v2ray.service
|
|
|
-systemctl enable v2ray.service
|
|
|
-```
|
|
|
-Since nobody user does not have the right permission to create the 'ss-loop' folder in /var/run.
|
|
|
-## Client configuration examples
|
|
|
-**You should change the parameters according to your server configs**
|
|
|
-### shadowsocks windows client configuration examples:
|
|
|
-```
|
|
|
-Server IP: example.com
|
|
|
-Server Port: 443
|
|
|
+### Shadowsocks windows client configuration examples
|
|
|
+
|
|
|
+> `mux=0` is indispensable when connecting with V2Ray-plugin, if you wish to use mux you need to try the [Domainsocket or Redirect Approach](./Domainsocket-or-Redirect-Approach/).
|
|
|
+
|
|
|
+```properties
|
|
|
+Server_IP: example.com or your server IP
|
|
|
+Server_Port: 443
|
|
|
Password: ifYouWantToKeepYourPassphraseSafeChangeThis!!
|
|
|
Encryption: chacha20-ietf-poly1305
|
|
|
-Plugin Program: pathToYourV2ray-plugin_windows_arch.exe
|
|
|
-Plugin Options: tls;mode=websocket;path=/michi;host=example.com
|
|
|
+Plugin_Program: pathToYourV2ray-plugin_windows_arch.exe
|
|
|
+Plugin_Options: mux=0;tls;mode=websocket;path=/path;host=example.com
|
|
|
```
|
|
|
-### shadowsocks Android plugin configuration examples:
|
|
|
|
|
|
-> Both the shadowsocks android and the V2Ray plugin android are mandatory, they are available on Google Play Store.
|
|
|
-```
|
|
|
+### shadowsocks Android plugin configuration examples
|
|
|
+
|
|
|
+> Both the shadowsocks android and the V2Ray plugin android are mandatory, they are available on Google Play Store.\
|
|
|
+> _`Concurrent connections must be 0.`_
|
|
|
+
|
|
|
+```properties
|
|
|
Plugin: v2ray
|
|
|
Configuration:
|
|
|
- Transport mode: websocket-tls
|
|
|
+ Transport_mode: websocket-tls
|
|
|
Hostname: example.com
|
|
|
- Path: /michi
|
|
|
- Concurrent connections: 1
|
|
|
- Certificate for TLS verification: Not set
|
|
|
+ Path: /path
|
|
|
+ Concurrent_connections: 0
|
|
|
+ Certificate_for_TLS_verification: Not set
|
|
|
```
|