Feature/xray custom port (#965)

* add variable port to scripts for xray

* update naming
This commit is contained in:
Cyril Anisimov 2024-08-12 09:27:52 +02:00 committed by GitHub
parent 1343d10aa7
commit d18423ee8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View file

@ -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"
],