Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

erfjab/notforced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This guide helps you download main.py and configure it within Marzban.

Steps

  1. Download main.py
    Download main.py from the repository to your Marzban directory:

    sudo wget -P /opt/marzban/ https://github.com/erfjab/notforced/blob/master/main.py
  2. Edit docker-compose.yml
    Open your docker-compose.yml file in the editor:

    nano /opt/marzban/docker-compose.yml
  3. Add Volume Configuration
    In the volumes section, add the following lines to link main.py:

    volumes:
      - /var/lib/marzban:/var/lib/marzban   
      - /opt/marzban/main.py:/code/main.py
  4. Restart Marzban
    To apply changes, restart Marzban:

    marzban restart

All done! Marzban is now configured with the main.py file.