Skip to content

Cloudflare Tunnel doesn't work with wildcards #2926

Answered by mrados7
Mishatopkek asked this question in Q&A
Discussion options

You must be logged in to vote

I managed to get it working after all 🥳 .
First if you did a lot of changes to your coolify (specially proxy and containers) I would suggest to do cleanup and start over (here's how).

Setup cloudflare tunnel

Follow docs but only part for wildcard domains -> https://coolify.io/docs/knowledge-base/cloudflare/tunnels/
Instead of putting cloudflare tunnel to localhost:80 I put it on coolify-proxy:80 (you will see why below)
So every request coming from tunnel will come to reverse proxy (by default traefik running on port 80 with container name coolify-proxy)

Make sure you have DNS setup as follows:

Also make sure that SSL is on Full, or Full(Strict) on Cloudflare.

Coolify setup

You now need…

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Mishatopkek
Comment options

Comment options

You must be logged in to vote
3 replies
@mrados7
Comment options

@johnykes
Comment options

@johnykes
Comment options

Answer selected by Mishatopkek
Comment options

You must be logged in to vote
1 reply
@mrados7
Comment options

Comment options

You must be logged in to vote
2 replies
@mrados7
Comment options

@Mishatopkek
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants