Various templates for the Marzban panel
A list of customized templates for Marzban
To install each template, refer to its respective page
To install all available templates, execute the following commands in your server's terminal:
- Download the template files
sudo wget -N -P /var/lib/marzban/templates/home/ https://raw.githubusercontent.com/Namiz4n/Template/master/home/index.html
sudo wget -N -P /var/lib/marzban/templates/subscription/ https://raw.githubusercontent.com/Namiz4n/Template/master/subscription/index.html
sudo wget -N -P /var/lib/marzban/templates/xray/ https://raw.githubusercontent.com/Namiz4n/Template/master/v2ray/template.yml
sudo wget -N -P /var/lib/marzban/templates/singbox/ https://raw.githubusercontent.com/Namiz4n/Template/master/singbox/template.yml
sudo wget -N -P /var/lib/marzban/templates/clash/ https://raw.githubusercontent.com/Namiz4n/Template/master/clash/template.yml2.Run the following commands in your server's terminal:
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"' | sudo tee -a /opt/marzban/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /opt/marzban/.env
echo 'SINGBOX_SUBSCRIPTION_TEMPLATE="singbox/template.yml"' | sudo tee -a /opt/marzban/.env
echo 'V2RAY_SUBSCRIPTION_TEMPLATE="v2ray/template.yml"' | sudo tee -a /opt/marzban/.env
echo 'CLASH_SUBSCRIPTION_TEMPLATE="clash/template.yml"' | sudo tee -a /opt/marzban/.env
Or add the following values to the .env file in the /opt/marzban directory
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
SINGBOX_SUBSCRIPTION_TEMPLATE="singbox/template.yml"
V2RAY_SUBSCRIPTION_TEMPLATE="v2ray/template.yml"
CLASH_SUBSCRIPTION_TEMPLATE="clash/template.yml"
3.Restart Marzban
marzban restart
To update the templates, simply repeat step 1.