matt8707 / ha-fusion

A modern, easy-to-use and performant custom Home Assistant dashboard
MIT License
2.06k stars 87 forks source link

Only able to run HA-Fusion local #82

Open canedje opened 8 months ago

canedje commented 8 months ago

I only can use HA-Fusion on my local network. Approaching by reverse Proxy (Nginx) is not working creating a connection error. In de setup I changed the local IP to a Nginx DNS adress For me not important (I only use it local on my tablet), but just to know image

matt8707 commented 8 months ago

I'll close this for now, it could be a nginx setup error

matze19999 commented 4 months ago

It's not a nginx error, I get the same error with traefik3 as reverse proxy. In the log, I get following error messages:

SvelteKitError: Not found: /ecp/Current/exporttool/microsoft.exchange.ediscovery.exporttool.application at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /server-status at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /login.action at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /_all_dbs at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /.DS_Store at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /.env at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /.git/config at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /s/235323e2430323e2632323e2233313/_/;/META-INF/maven/com.atlassian.jira/jira-webapp-dist/pom.properties at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /config.json at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /telescope/requests at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' } SvelteKitError: Not found: /.git/config at resolve2 (file:///rootfs/build/server/index.js:4062:18) at resolve (file:///rootfs/build/server/index.js:3894:34) at Object.handle (file:///rootfs/build/server/chunks/hooks.server-CE3BTx0B.js:2:26) at respond (file:///rootfs/build/server/index.js:3892:43) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 404, text: 'Not Found' }

No entity states are shown over reverse proxy:

image

matze19999 commented 4 months ago

@matt8707 can you please re-open the issue because it's not a reverse proxy problem?

matt8707 commented 4 months ago

Can you post information on how to replicate this step-by-step?

matze19999 commented 3 months ago

Can you post information on how to replicate this step-by-step?

  1. Change the web port of ha-fusion to a custom port (for example 20020)
  2. Setup a reverse proxy with an example domain (fusion.domain.com) which forwards to the ha fuison gui (192.168.1.2:20020)
  3. Open ha-fusion over the example subdomain: fusion.domain.com

The page will load, but no entity states are shown.

matt8707 commented 3 months ago

Thanks. I understand how it works in theory, but I'm seeking detailed, step-by-step instructions to avoid spending time on research when replicating the issue.

kenhoppla commented 3 months ago

Having the same issue with using cloudflared

Nartsuto commented 1 month ago

I had the same issue and when you inspect the page I was seeing something like "Mixed Content" & "was loaded over https, but requested an insecure frame" (I'm thinking http)

So I assumed the issue was a mix match of the http and https configs and the only http I had between the three services (traefik3, hassio and fusion) was the environement variable for fusion to talk to home assistant.

So I tried pointing fusion at my external address (https://homeassistant.domain.com) rather than my local address (Http://ip:port) for home assistant and can now access fusion through my external domain (https://fusion.domain.com) without the errors you are seeing.

image