Skip to content

cortez24rus/marz-sub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This template use in marz-reverse-proxy install script

Table of Contents

Introduction

A simple html template to better display user information

Attributes

  • Quickly add subscription links to programs
  • The link to download the required applications
  • Three languages (Russian, English, Persian)
  • Sub fantasy page with beautiful color and glaze
  • Receive the configs with the copy icon at the bottom of the page

marz-sub.sh

Installation Steps

  1. Run script
bash <(curl -Ls https://github.com/cortez24rus/marz-sub/raw/main/marz-sub.sh)
  1. Restart Marzban
marzban restart

Update

To update the template, just repeat step 1.

Default Language

To change the default language, just refer to the end of the code in the html file and select the desired language in the select tag. Example:

<select id="countries" class="border text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 bg-gray-700 border-gray-600 placeholder-gray-400 text-white :focus:ring-blue-500 :focus:border blue-500">
  <option value="ru">Русский</option>
  <option value="en">English</option>
  <option value="fa">فارسی</option>
</select>

In this example, the main language is Russian.

Personalization

To personalize background image and user logo, changes must be included in the html file, which is possible by searching for some values. To search using nano, first open the file with nano with the following command:

nano /var/lib/marzban/templates/subscription/index.html

Search for the user's logo:

images/marzban.svg

Search for the background image:

background: url('https://4kwallpapers.com

After making changes, save the file and restart Marzban.

Host Version

To use the host version, upload the sub folder to the host and change the value of BASE_URL to your panel address in the index.php file just like the following example. Remember to write http if you don't have an SSL for your panel domain.

const BASE_URL = "https://BaseUrl:PORT";

Copyright

This template is based on Marzban Templates design.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 58.6%
  • PHP 40.6%
  • Shell 0.8%