First you need to copy html file to your sever. You can do it by this:
cd /opt/marzban
apt install wget
wget https://raw.githubusercontent.com/x0sina/marzban-sub/main/index.html
Then you have to map it to your docker container. Add this line to volume section of docker-compose.yml
:
(DO NOT REPLACE WHOLE FILE, Just the last line)
services:
marzban:
...
volumes:
...
- /opt/marzban/index.html:/code/app/templates/subscription/index.html # this line
Now you can restart your marzban's docker:
marzban restart
ابتدا فایل html file رو به سرور بفرستید. با دستور زیر میتونید این کارو بکنید:
cd /opt/marzban
apt install wget
wget https://raw.githubusercontent.com/x0sina/marzban-sub/main/index.html
حالا باید این فایل به به داکر مپ کنید. خط آخر رو به بخش volumes فایل docker-compose.yml
اضافه کنید:
(کل فایل رو جایگزین نکنید!!! فقط خط آخر)
services:
marzban:
...
volumes:
...
- /opt/marzban/index.html:/code/app/templates/subscription/index.html # this line
حالا مرزبان رو ریاستارت کنید:
marzban restart