Last active
December 25, 2023 07:42
-
-
Save greatbody/ac9b6200913b4e4bd5196919e054d0a6 to your computer and use it in GitHub Desktop.
config v2ray db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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