Gozargah / Marzban

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

Dashboard page cannot load static files #1377

Open KurimuzonAkuma opened 19 hours ago

KurimuzonAkuma commented 19 hours ago

Describe the bug When opening the dashboard it opens just a white page with no css styles or js scripts.

To Reproduce Steps to reproduce the behavior:

  1. Just install the 0.7.0 version of marzban, set proxy_pass in nginx and open the page.

Expected behavior The page loads and displays the dashboard.

Screenshots image

Machine details (please complete the following information):

Additional context Marzban installed via sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban.sh)" @ install.

My nginx config: image

M03ED commented 19 hours ago

did you try reinstalling marzban ?

KurimuzonAkuma commented 19 hours ago

did you try reinstalling marzban ?

Yes, but doesnt help :(

ImMohammad20000 commented 18 hours ago

did you change dashboard path ?

KurimuzonAkuma commented 17 hours ago

did you change dashboard path ?

Same with default and custom path

M03ED commented 16 hours ago

try to set ssl and access directly to dashboard, see what happen

KurimuzonAkuma commented 16 hours ago

try to set ssl and access directly to dashboard, see what happen

I dont have certs so i connect via ssh -L 1234:localhost:1234 user@ip and it works fine. I have problem only with nginx :(

Everything worked fine on version 0.6.0...

M03ED commented 15 hours ago

so the problem is your nginx configuration...

KurimuzonAkuma commented 14 hours ago

so the problem is your nginx configuration...

The configuration is shown in the screenshot above and was taken from the README. What could be wrong there? 🤔

M03ED commented 14 hours ago

The configuration is shown in the screenshot above and was taken from the README. What could be wrong there? 🤔

im not familiar with nginx but if you jujst use nginx to set ssl, i suggest try haproxy that may solve your problem ( im currently using haproxy )

arsamme commented 7 hours ago

Add statics to your nginx location regex

KurimuzonAkuma commented 7 hours ago

Add statics to your nginx location regex

Same 😢

arsamme commented 7 hours ago

Adding statics to nginx location regex and restarting nginx using this command should work: systemctl restart nginx

Another solution is to forward any request of a domain/sub-domain to Marzban without using location regex, Like me:

image