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
- 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
- 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
- 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"
- Restart Marzban to apply the changes.
marzban restart
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.
Use the instruction below to install page to Marzneshin- 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
- 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"
- Restart Marzneshin to apply the changes.
marzneshin restart
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.
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
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.