cloudflare / cloudflare/cloudflared

💡When running `cloudflared tunnel route dns tunnel-name tunnel.x.com` use the x.com zone

Open
#1,295 2 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Feature Request
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the feature you'd like**
Currently to create a tunnel you have to run the following commands (dx is already very bad, should be 1 command)

```
cloudflared tunnel create tunnel-name
cloudflared tunnel route dns tunnel-name tunnel.example.com
cloudflared tunnel run --url http://localhost:5467 tunnel-name
```

This won't create a tunnel on tunnel.example.com if for some reason you used the cloudflared on another domain previously (for example x.com), instead it will create one on `tunnel.example.com.x.com`

**Describe alternatives you've considered**
Use the website with domain example.com if i am trying to create a tunnel there, not tunnel.example.com.x.com

**Additional context**
Maybe you have to run `cloudflared tunnel login` again? But there is only 1 global cloudflared config at `/Users/user/.cloudflared/cert.pem`, this doesn't make sense

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.