If you need explanations in Persian, check out the Readme for Farsi.
** This is a custom subscription template designed for the XUI Panel, providing a clear view of service details, including usage, expiration date, and more.
We don't need financial support, only Star (⭐) is enough, thank you.
bash <(curl -Ls https://raw.githubusercontent.com/dev-ir/xui-subscription-template/refs/heads/master/main.sh )
nano /opt/DVHOST/dvhost.config
You must restart the service after changing the configuration file.
systemctl restart DVHOST_TEMPLATE
systemctl status DVHOST_TEMPLATE
You should not have ports 2082 and 2083 involved.
nano /opt/DVHOST/views/sub.ejs
If you want to create your own template, go this route.
Click for Dynamic Variables details
The template uses the following dynamic variables to display user-specific information:
| Variable | Description |
|---|---|
<%= data.id %> | User or subscription ID. |
<%= data.email %> | User's email address. |
<%= data.suburl %> | Subscription URL. |
<%= data.enable %> | Subscription status (true/false). |
<%= data.up %> | Uploaded data (bytes). |
<%= data.down %> | Downloaded data (bytes). |
<%= data.total %> | Total allowed data (bytes). |
<%= data.expiryTime %> | Expiration time (timestamp). |
<%= data.inboundId %> | Inbound connection ID. |
Enjoy seamless and user-friendly subscription management with this template!
- USDT (TRC20):
TVUqVMoCEe5DVUoxmPg8MwmgcHvZLqLjr4
