This guide helps you download main.py
and configure it within Marzban.
-
Download
main.py
Downloadmain.py
from the repository to your Marzban directory:sudo wget -P /opt/marzban/ https://github.com/erfjab/notforced/blob/master/main.py
-
Edit
docker-compose.yml
Open yourdocker-compose.yml
file in the editor:nano /opt/marzban/docker-compose.yml
-
Add Volume Configuration
In thevolumes
section, add the following lines to linkmain.py
:volumes: - /var/lib/marzban:/var/lib/marzban - /opt/marzban/main.py:/code/main.py
-
Restart Marzban
To apply changes, restart Marzban:marzban restart
All done! Marzban is now configured with the main.py
file.