phntxx / dashboard

:bar_chart: a nice and simple dashboard / landing page.
MIT License
951 stars 55 forks source link

Outside access via nginx reverse proxy #88

Open Totil-a opened 1 year ago

Totil-a commented 1 year ago

Hi there,

I was wondering: is it possible to reach the dashboard from the outside mydomain.org/dashboard via a reverse proxy?

This is what I have as nginx config but it results in an empty page. Local access works as expected though. Not sure what is missing.

`location /dashboard/ { proxy_pass http://internalIP:8080/$request_uri; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect off;

proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_buffering off; } `

Many thanks for a reply in advance.

T

almereyda commented 11 months ago

There is a workaround for the white page in https://github.com/phntxx/dashboard/issues/63#issuecomment-1079297112, which worked for some in the past and present.