# EylanPanel integration

- Class: `includes/EylanAPI.php`
- Auth: `X-API-KEY`
- Docs: https://eylandoo.github.io/

## Setup
1. Panel web → **EylanPanel** page: set server id, URL, API key (type becomes `eylan`)
2. Or SQL: `UPDATE server_config SET type='eylan', panel_url='https://...', api_token='KEY', password='KEY' WHERE id=N;`
3. Attach plans to that server_id
4. Bot admin VIP → **EylanPanel** → test connection

## Provision
`addInboundAccount` detects `eylan` type and calls `eylanProvisionUser` (create + sub link + configs).


## Plan protocol field
Set  to one of:
-  / 
-  / 
- 
-  / 
- combinations: 
-  (default openvpn only for safety)

Optional in descr: 

## Renew / delete
- 
-  hooked into 
- traffic reset via  on eylan servers

## Plan protocol field
Set server_plans.protocol to one of:
- openvpn / ovpn
- wireguard / wg
- l2tp
- cisco / anyconnect
- combinations like openvpn+wireguard
- all (defaults to openvpn)

Optional in descr: nodes=[1,3]

## Renew / delete
- eylanRenewUser(serverId, username, days, gb optional)
- eylanDeleteUser hooked into deleteClient
- traffic reset via resetClientTraffic on eylan servers
