Feature/xray custom port (#965)
* add variable port to scripts for xray * update naming
This commit is contained in:
parent
1343d10aa7
commit
d18423ee8c
4 changed files with 5 additions and 4 deletions
|
|
@ -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"
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue