Open fizcris opened 3 years ago
I kinda have the same question. Just set up https for HomeAssistant, modified the pyscript.conf file accordingly and now it seems like it is not working.
Okay, so my working setup is:
I think what we are missing is a flag in the pyscript.conf to accept untrusted SSL then it would work without needing a valid cert locally.
For my 2-cents, I was having the same trouble accessing the kernel from my LAN. The problem seemed to that
To fix it, I enabled port forwarding from my router to my HA instance of all ports above 9999. This rewrites local accesses to the device, but also exposes those ports externally. That might be what you want: I didn't, so I also added a firewall rule preventing WAN access to the same ports on the router.
Thanks for the above solution. Would be great if there was a flag to ignore invalid cert for local https access?
As @charlesbaynham wrote, accessing behind a reverse proxy doesn't work because the reverse proxy will not forward the randomized ports. Would it be possible to support this usage scenario?
i use a self signed cert and even though I installed the cert locally python still rejects it, which is probably also why i can’t connect via jupyter.
i see that this pr mentioned should allow me to just disable the check, but i don’t think the current released version includes this? the pyscript.conf doesn’t show this option and adding it doesn’t seem to do anything.
can i directly install the latest version or is this getting another release?
@zeratax for what it's worth, I was able to successfully manually apply the current master and use the new parameter from @acambitsis's changes in https://github.com/craigbarratt/hass-pyscript-jupyter/pull/21.
Current master: https://github.com/craigbarratt/hass-pyscript-jupyter/tree/a30ad3cf0dd3f5af2b57a8b39a9fa11f501db1d4
hass_pyscript_kernel
directory and use to replace contents of site-packages/hass_pyscript_kernel/
.__pycache__
in the same directory if present.verify_ssl = False
to pyscript.conf
.
Is there an easy way to make it work with https?
Without having to set up a reverse proxy...