Skip to content

Instantly share code, notes, and snippets.

@greatbody
Last active December 25, 2023 07:42
Show Gist options
  • Select an option

  • Save greatbody/ac9b6200913b4e4bd5196919e054d0a6 to your computer and use it in GitHub Desktop.

Select an option

Save greatbody/ac9b6200913b4e4bd5196919e054d0a6 to your computer and use it in GitHub Desktop.
config v2ray db
sudo sqlite3 /etc/x-ui/x-ui.db << EOF
INSERT INTO inbounds (user_id, up, down, total, remark, enable, expiry_time, listen, port, protocol, settings, stream_settings, tag, sniffing)
VALUES (1, 0, 0, 0, 'default', 1, 0, '', "$GCPPORT", 'vmess', '{"clients": [{"id": "$GCPID", "alterId": 0}], "disableInsecureEncryption": false}', '{"network": "ws", "security": "none", "wsSettings": {"path": "/", "headers": {"Host": "$GCPHOST"}}}', 'inbound-"$GCPPORT"', '{"enabled": true, "destOverride": ["http", "tls"]}')
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment