SSL / HTTPS proxy #215
Replies: 4 comments 5 replies
-
Now for accessing weather data at port 8676 I ran into another problem which is that javascript / http requests (which I use to get the weather JSON data) to a different host may also get blocked by the browser with an Access-Control-Allow-Origin error. Again the web server has to be configured to permit that. Again lighttpd has a config setting for that...
And now my web page can retrieve weather data as well. Just thought I would post this in case others attempt to do the same and run into similar problems. |
Beta Was this translation helpful? Give feedback.
-
To close the loop on this with the final piece of the puzzle... to proxy Grafana requires an additional setting to support websocket protocol. You need to enable that with a proxy header statement as shown below...
Grafana will also run into the Access-Control-Allow-Origin problem described above, but this is best fixed on the Grafana server by adding this statement to the
David |
Beta Was this translation helpful? Give feedback.
-
I think I've been having this issue with Traefik. There's a post about it here https://community.traefik.io/t/embedded-http-iframe-on-https-page/18013 I really would like a solution hmm. |
Beta Was this translation helpful? Give feedback.
-
Thanks for helping. I’m still totally stuck. I’d appreciate if there’s anything glaringly obvious here, otherwise I may just be stuck on local network access. I thought maybe it was because my P-D stack was different from my Traefik stack (but same machine), and thus different networks. So I added all P-D containers to my Traefik docker network and they’re reporting as connected in Portainer. I removed all port references within all the P-D containers. I opened port 8675:8675 on my Traefik container.
Publishing as a simple I added an
And published labels on the two P-D containers for pypowerwall and grafana, both pointing at the same domain but with different entry points (using
I can get the grafana page to load correctly but for the Power Flow animation - which is clearly not being seen via my proxy setup. Any tips on how to troubleshoot the webpanel would be appreciated, too. May point me in the right direction. |
Beta Was this translation helpful? Give feedback.
-
When trying to embedd the pyPowerwall current flow graphic into a webpage of my own I ran into the problem that browsers will block attempts to embed a insecure (http) iframe within a secure (https) webpage. I thought I would document how I solved this.
My web server is running lightttpd and it supports https proxy. In the config file I can set...
So now in my webpage, instead of pointing the iFrame at the pyPowerwall host, port 8675, I point it at my lighttpd host (as https), same port number, which is then proxy'd over to the non-secure pyPowerwall host. Works like a charm.
Replace the pem and ca-files to point at your own certificates, and the IP address of the pyPowerwall server to point at your server address.
Beta Was this translation helpful? Give feedback.
All reactions