Subscription Template for Marzban
Enhance user information display with this simple HTML template.
- Easily integrate subscription links into programs
- Download links for required applications
- Supports 4 languages: Russian, English, Persian, 中文
- Visually appealing fantasy page with beautiful colors
- Configurations can be copied with the icon at the bottom of the page
- Download the Template File:
sudo wget -N -P /var/lib/marzban/templates/subscription/ https://raw.githubusercontent.com/codedpro/marzban-sub/main/index.html- Configure Marzban:
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/.envAlternatively, uncomment the following values in the .env file located in the /opt/marzban folder by removing the # at the beginning of each line:
CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"- Restart Marzban:
marzban restartTo update the template, repeat step 1.
To change the default language, locate the select tag at the end of the HTML file and modify the desired language option. For example:
<select
style="text-indent: 15px; height: 50px"
id="countries"
class="border text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-2.5 py-3.5 bg-gray-100 border-gray-200 placeholder-gray-800 text-black dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"
>
<option value="fa">فارسی</option>
<option value="en">English</option>
<option value="zh">中文</option>
<option value="ru">Русский</option>
</select>
In this example, فارسی is the default language.
To personalize the Telegram ID, background image, and user logo, make changes directly in the HTML file. Use the following search phrases with a text editor like nano:
- To change the Telegram support ID:
https://t.me/Coded_Pro
After making changes, save the file and restart Marzban.
This template is based on Marzban Templates design. developed by Coded Pro