huly-selfhost icon indicating copy to clipboard operation
huly-selfhost copied to clipboard

huly-selfthosted behind cloudflare tunnel

Open reynold-lariza opened this issue 1 year ago • 1 comments

I have an existing cloudflare tunnel service into my proxmox machine, and added a record to point to http://<huly-vm-ip>:8087/ so it will have a DNS record of https://office.some.tld

Wherein huly-vm ip is 10.0.1.222

But it appears there's an issue when attempting to login Unknown error: Failed to fetch

utils.ts:957  Mixed Content: The page at 'https://office.some.rld/login%3Acomponent%3ALoginApp/login' was loaded over HTTPS, but requested an insecure resource 'http://10.0.1.222:3000/providers'. This request has been blocked; the content must be served over HTTPS.

reynold-lariza avatar Oct 08 '24 15:10 reynold-lariza

I had some success getting huly to run behind cloudflare tunnel. I used the setup.py from under the huly-selfhost/nginx directory, and had to make some slight modification to the setup.py because it was hard-coding ports into the wrong places for a cloudflare tunnel configuration.

I put up a pull request https://github.com/hcengineering/huly-selfhost/pull/101 with the changes required. If you copy the setup.py: from my pull request, you might have success following along the steps I outlined in README.md in the PR.

MironVeryanskiy avatar Nov 24 '24 23:11 MironVeryanskiy