I have installed the bench and set up a site on a home server. I can access the site without problems LAN. But, I want to access it from outside. The only way is through cloudflare tunnel because I can’t port forward with the current ISP. I have other services on home server that have no problem with the tunnel. I just point a subdomain to something like http://localhost:8066 and it works flawlessly. But with frappe, it doesn’t serve static files.
Now, here is what I did:
- Tried accessing frappe from the local network on http://localip:8000. Works fine.
- Point sub.domain.com to HTTP localhost:8000 in zero trust console. Like I did with any other service.
- When I go to https://sub.domain.com it doesn’t render CSS or any other static files
- I open the console and it shows a 404 error on static files. Can’t access them.
I saw that there is already a post related to Cloudflare tunnel. And that @iMoshi has made it work, But couldnt figure out what they did. Could you provide some info on how you made i work for you. I am sure it will also be useful for future self-hosted tinkerers.