mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
Feature/xray custom port (#965)
* add variable port to scripts for xray * update naming
This commit is contained in:
@@ -29,7 +29,7 @@ cat > /opt/amnezia/xray/server.json <<EOF
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 443,
|
||||
"port": "$XRAY_SERVER_PORT",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
@@ -44,7 +44,7 @@ cat > /opt/amnezia/xray/server.json <<EOF
|
||||
"network": "tcp",
|
||||
"security": "reality",
|
||||
"realitySettings": {
|
||||
"dest": "$XRAY_SITE_NAME:443",
|
||||
"dest": "$XRAY_SITE_NAME:$XRAY_SERVER_PORT",
|
||||
"serverNames": [
|
||||
"$XRAY_SITE_NAME"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user