Giter VIP home page Giter VIP logo

sshvpn-api's Introduction

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

sshvpn-api's People

Contributors

gegedesembri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.