Skip to content

GegeDevs/sshvpn-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

SSH/VPN API Services

WebAPI terintegrasi dengan SSH/VPN Script

Configuration

File konfigurasi

/etc/gegevps/api/.env

Access

Melihat Port dan API Key

cat /etc/gegevps/api/.env

Output

APIKEY='db9f7734-9dab-44e2-89f9-xxxxxxxxxxxx'
LISTEN_PORT=3000

API Key : db9f7734-9dab-44e2-89f9-xxxxxxxxxxxx

API Port : 3000

Endpoint

Format

http://[IP_SERVER]:[API_PORT]/[PATH]

Contoh :

http://123.123.123.123:3000/ssh

Create

Method : POST

Tunnel Path APIKey user pass expi core
SSH/OpenVPN /ssh βœ… βœ… βœ… βœ… ⛔️
SoftetherVPN /sevpn βœ… βœ… βœ… βœ… ⛔️
VMess /vmess βœ… βœ… ⛔️ βœ… βœ…
VLess /vless βœ… βœ… ⛔️ βœ… βœ…
Trojan /trojan βœ… βœ… ⛔️ βœ… βœ…
Shadowsocks /shadowsocks βœ… βœ… ⛔️ βœ… βœ…
Socks5 /socks5 βœ… βœ… ⛔️ βœ… βœ…
Trojan-Go /trojango βœ… βœ… ⛔️ βœ… ⛔️
Hysteria /hysteria βœ… βœ… ⛔️ βœ… ⛔️
UDP Custom /udpcustom βœ… βœ… ⛔️ βœ… ⛔️

Contoh penggunaan menggunakan cURL (Linux Command)

curl -sS -kL -X POST "http://123.123.123.123:3000/ssh" \
    -H "APIKey: db9f7734-9dab-44e2-89f9-xxxxxxxxxxxx" \
    -d "core=xray" \
    -d "user=gegeuserapi" \
    -d "pass=gegeuserapi" \
    -d "expi=30"

Catatan

βœ… - Diperlukan

⛔️ - Tidak digunakan

Delete

Method : DELETE

Tunnel Path APIKey user core
SSH/OpenVPN /ssh βœ… βœ… ⛔️
SoftetherVPN /sevpn βœ… βœ… ⛔️
VMess /vmess βœ… βœ… βœ…
VLess /vless βœ… βœ… βœ…
Trojan /trojan βœ… βœ… βœ…
Shadowsocks /shadowsocks βœ… βœ… βœ…
Socks5 /socks5 βœ… βœ… βœ…
Trojan-Go /trojango βœ… βœ… ⛔️
Hysteria /hysteria βœ… βœ… ⛔️
UDP Custom /udpcustom βœ… βœ… ⛔️

Contoh penggunaan menggunakan cURL (Linux Command)

curl -sS -kL -X DELETE "http://123.123.123.123:3000/ssh" \
    -H "APIKey: db9f7734-9dab-44e2-89f9-xxxxxxxxxxxx" \
    -d "core=xray" \
    -d "user=gegeuserapi"

Catatan

βœ… - Diperlukan

⛔️ - Tidak digunakan

Response

Success

{
	"ok": true,
	...
}

Failed

{
	"ok": false,
	"description": "Error Message"
}

SystemD

Start

systemctl start gegevps-api

Stop

systemctl stop gegevps-api

Retart

systemctl restart gegevps-api

About

GegeVPS SSH/VPN API Services

Resources

License

Stars

Watchers

Forks