Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 

Repository files navigation

Subscription Template for Marzban

Table of Contents

Introduction

Enhance user information display with this simple HTML template.

Attributes

  • 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

Installation Steps

  1. Download the Template File:
sudo wget -N -P /var/lib/marzban/templates/subscription/  https://raw.githubusercontent.com/codedpro/marzban-sub/main/index.html
  1. 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/.env

Alternatively, 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"
  1. Restart Marzban:
marzban restart

Update

To update the template, repeat step 1.

Default Language

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.

Personalization

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.

Copyright

This template is based on Marzban Templates design. developed by Coded Pro

About

A Custom Marzban Sub Template

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages