entrypoint.sh 479 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. #Config xray
  3. rm -rf /etc/xray/config.json
  4. cat << EOF > /etc/xray/config.json
  5. {
  6. "inbounds": [
  7. {
  8. "port": $PORT,
  9. "protocol": "vless",
  10. "settings": {
  11. "decryption": "none",
  12. "clients": [
  13. {
  14. "id": "$UUID"
  15. }
  16. ]
  17. },
  18. "streamSettings": {
  19. "network": "ws"
  20. }
  21. }
  22. ],
  23. "outbounds": [
  24. {
  25. "protocol": "freedom"
  26. }
  27. ]
  28. }
  29. EOF
  30. #run xray
  31. xray -c /etc/xray/config.json