Better support for cloudflare tunnels #24913
hulto
started this conversation in
Feature Request
Replies: 1 comment 4 replies
-
|
Thanks for a thorough write-up. I appreciate the time you spent sharing this detailed feedback.
Can you elaborate on this? on the part where it could be suitable in setting this up and how? We are also open to adding a new Cloudflare Tunnels specific guide to our docs. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I've been experimenting with coder recently and really enjoy it.
I recently set it up behind cloudflare tunnels with access policies enabled and ran into some pain points.
Subcommands and CODER_HEADER_COMMAND
Some subcommands / components don't support the CODER_HEADER_COMMAND the two I had issues with were:
coder gitsshand then coder using the devcontainers cli connecting to/api/v2/workspaceagents/me/rpccoder agent errors:


Cloudflare config:
Install script
To work around the failing service auth I ended up creating two domains and applications in cloudflare one for users
coder.example.comand one for agentscoderint.example.comWhen doing this I had to manually define the install script for the agent in order to set the coder_url to something aside from the users URL.
It could be helpful to allow
CODER_AGENT_URLto be overridden.Closing
I apprecaiate the comments in #9130 they helped me getting everything working.
Attached is the pythons script I used to fetch CF tokens in case it's helpful to anyone else.
cftoken.py
Beta Was this translation helpful? Give feedback.
All reactions