Gozargah / Marzban

Unified GUI Censorship Resistant Solution Powered by Xray
https://t.me/gozargah_marzban
GNU Affero General Public License v3.0
3.73k stars 517 forks source link

Marzban can`t load SSL certificates not from /var/lib/marzban/certs/ #1246

Closed Skrepysh closed 3 months ago

Skrepysh commented 3 months ago

Describe the bug If in .env I specify the path to the SSL certificate file and this file is located not in /var/lib/marzban/certs/, then marzban does not start. A screenshot of the logs is attached.

To Reproduce

  1. Run sudo marzban down
  2. Copy .pem SSL-cert files (fullchain.pem and key.pem) from /var/lib/marzban/certs to any other place.
  3. Specify path to the new SSL-cert files location in /opt/marzban/.env
  4. Run sudo marzban up
  5. See that marzban cannot start up.

Expected behavior Marzban must start no matter where the SSL certificate files are located.

Screenshots WindowsTerminal_3Fk7HxQxPF

Machine details:

Additional context No

M03ED commented 3 months ago

because docker don't have access to that directory , add access to the directory or move ssl file to /var/lib/marzban/certs/

Skrepysh commented 3 months ago

поскольку у Docker нет доступа к этому каталогу, добавьте доступ к каталогу или переместите файл SSL в/var/lib/marzban/certs/

Didn't know about this. Adding the line to docker-compose.yml solved the problem. Thank you.