Language sync and add back some contents (#575)

* Force syncing contents to Russian documents

* Add NFT note to front page

* Update Histories

* Update command usage
This commit is contained in:
Kobe Arthur Scofield
2024-09-12 19:54:45 +08:00
committed by GitHub
parent 2954e2fd79
commit cf9f72b1d5
10 changed files with 595 additions and 305 deletions
+61 -2
View File
@@ -51,7 +51,12 @@ Default "json".
The -test flag tells Xray to test config files only,
without launching the server
The -dump flag tells Xray to print the merged config.
```
::: tip
Except from the default JSON format, config can also use TOML and YAML. It will automatically recognized from file extensions when the `-format` flag is not set.
:::
### xray version
@@ -84,6 +89,59 @@ xray api <command> [arguments]
rmo Remove outbounds
```
### xray convert
Convert config to protobuf, or convert typedMessage to JSON
usage:
```
xray convert <command> [arguments]
The commands are:
pb Convert multiple json configs to protobuf
json Convert typedMessage to json
```
Sub-command `pb`
```bash
# Usage: xray convert pb [-debug] [-type] [json file] [json file] ...
# mix three config files to mix.pb
xray convert pb c1.json c2.json c3.json > mix.pb
# Use -debug option to view the content of mix.pb
xray convert pb -debug mix.pb
# Start Xray-core with mix.pb
xray -c mix.pb
# Detailed usage
xray help convert pb
```
Sub-command JSON
```bash
# Usage: xray convert json [-type] [stdin:] [typedMessage file]
tmsg='{
"type": "xray.proxy.shadowsocks.Account",
"value": "CgMxMTEQBg=="
}'
echo ${tmsg} | xray convert json stdin:
# Outputs from above:
'{
"cipherType": "AES_256_GCM",
"password": "111"
}'
# Detailed usage
xray help convert json
```
### xray tls
Some tools related to TLS.
@@ -95,8 +153,9 @@ xray tls <command> [arguments]
```
```
cert Generate TLS certificates
ping Ping the domain with TLS handshake
cert Generate TLS certificates
ping Ping the domain with TLS handshake
certChainHash Calculate TLS certificates hash.
```
### xray uuid