Kiran
Kiran
CCConvex Community
Created by Kiran on 7/24/2024 in #support-community
Self-hosting convex on domain with cloudflare
I'm running the convex open source backend, which works great locally. I wanted to expose it through a cloudflare tunnel on my custom domain name so I could access it from other devices, but when I expose port 3210 (which is what I saw being used in the just file) through a cloudflare tunnel to my domain at convex.---.com, and then replace the --url param with the new url, it doesn't work. I see the following error from the just convex dev command (replaced my domain with ---)
✖ Error: Unable to run schema validation on http://convex.---.com
Error fetching POST http://convex.---.com/api/prepare_schema 405 Method Not Allowed
✖ Error: Unable to run schema validation on http://convex.---.com
Error fetching POST http://convex.---.com/api/prepare_schema 405 Method Not Allowed
I'm guessing it's because it needs a proxy URL set so it knows where to send API requests. Is there a way to fix this?
25 replies