Skip to content

Clean and simple subscription page template for Marzban with detailed app instructions based on Bootstrap CSS

Notifications You must be signed in to change notification settings

goodboy34-tech/marzban-sub-page

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marzbanner - Marzban subscription page template

Simple, beautiful, and user-friendly HTML template for Marzban and Marzneshin subscription page based on Bootstrap CSS framework

Based on deeply rewrited dermw Marzbanify Template

Features · Installation · Personalization

Marzban Subscription page template

Features

  • The design is simple and intuitive, with minimal code.
  • Language switching: English and Russian.
  • Detailed guides are provided for Windows, Android, iOS, MacOS and Linux.
  • Automatic detection of the user's language.
  • QR code with subscription link

Installation

Marzban:

Use the instruction below to install page to Marzban

Install:

  1. Upload the file to the server.
sudo wget -N -P /var/lib/marzban/templates/subscription/ https://raw.githubusercontent.com/streletskiy/marzban-sub-page/main/index.html
  1. Enter these commands to automatically specify the file path to the subscription page.
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

Or specify them manually by editing the Marzban .env file.

CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzban/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
  1. Restart Marzban to apply the changes.
marzban restart

Update:

Re-upload the page file to the server (re-do first step from install):
sudo wget -N -P /var/lib/marzban/templates/subscription/ https://raw.githubusercontent.com/streletskiy/marzban-sub-page/main/index.html

After update need to repeat personalization.

Marzneshin:

Use the instruction below to install page to Marzneshin

Install:

  1. Upload the file to the server.
sudo wget -N -P /var/lib/marzneshin/templates/subscription/ https://raw.githubusercontent.com/streletskiy/marzban-sub-page/main/marzneshin/index.html
  1. Enter these commands to automatically specify the file path to the subscription page.
echo 'CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"' | sudo tee -a /etc/opt/marzneshin/.env
echo 'SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"' | sudo tee -a /etc/opt/marzneshin/.env

Or specify them manually by editing the Marzneshin .env file.

CUSTOM_TEMPLATES_DIRECTORY="/var/lib/marzneshin/templates/"
SUBSCRIPTION_PAGE_TEMPLATE="subscription/index.html"
  1. Restart Marzneshin to apply the changes.
marzneshin restart

Update:

Re-upload the page file to the server (re-do first step from install):
sudo wget -N -P /var/lib/marzneshin/templates/subscription/ https://raw.githubusercontent.com/streletskiy/marzban-sub-page/main/marzneshin/index.html

After update need to repeat personalization.

Personalization

To customize the favicons, logo, support and donate links, you need to edit the index.html file. Replace the following default values with your own.

Favicons:

https://raw.githubusercontent.com/streletskiy/marzban-sub-page/refs/heads/main/img/apple-touch-icon.png
https://raw.githubusercontent.com/streletskiy/marzban-sub-page/refs/heads/main/img/favicon-16x16.png
https://raw.githubusercontent.com/streletskiy/marzban-sub-page/refs/heads/main/img/favicon-32x32.png

Support link:

https://t.me/gozargah_marzban

Donate link:

https://github.com/Gozargah/Marzban#donation

Logo:

https://raw.githubusercontent.com/streletskiy/marzban-sub-page/refs/heads/main/img/logo.png

Hide Username

If you don't need to display the username, you can replace the subscription title. Simply find this line in the file:

<span class="text-break fs-3 fw-bold me-auto"><span x-text="$t('subscriptionFor')"></span> {{ user.username }}</span>

and replace it with:

<span class="text-break fs-3 fw-bold me-auto" x-text="$t('subscription')"></span>

After making changes, save the file and restart Marzban / Marzneshin.

About

Clean and simple subscription page template for Marzban with detailed app instructions based on Bootstrap CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%