- Notifications
You must be signed in to change notification settings - Fork1k
-
Hi. I have recently deployed Coder v2 OSS on my server and I use cloudflare tunnels to provide secure access to the server.
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 3 comments 11 replies
-
This might be related to your question. |
BetaWas this translation helpful?Give feedback.
All reactions
👎 3
-
to use CloudFlare Tunnels with the CLI on the client, you will probably need to do something like this: export TOKEN=$(cloudflared access token -app=http://coder.example.com)coderexport CODER_HEADER=cf-access-token=$TOKENcoder login https://coder.example.com or export TOKEN=$(cloudflared access token -app=http://coder.example.com)coder coder login https://coder.example.com --header cf-access-token=$TOKEN |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2❤️ 2
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
support for |
BetaWas this translation helpful?Give feedback.
All reactions
-
Yes. I would personally opt for a guide on how to host Coder behind a cloud flare tunnel. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you so much@phorcys420 and@matifali!! I really appreciate it! Also, I tried the original discord link again and this time it loaded - I think I hadn't completed onboarding in Discord so it look like the messages were no longer available. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
Hi- Sorry for the late reply. |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 2
-
Once running the commands@phorcys420 listed, I also needed to run: coder config-ssh To get the cloudflared token added to the SSH config. Then I needed to connect to a remote via VSCode and specify the SSH path in the SSH config for the workspace ( Not an issue really since I can use the SSH path and remote connections, just something to note for future people looking to connect via this method. |
BetaWas this translation helpful?Give feedback.
All reactions
-
When you connect via the VSCode button it uses thecoder-remote extension that writes it own ssh-config. To set a header for the extension you need to set it in the extension settings in VSCode. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
you need to enable websockets on cloudflare, and either disable bot fight mode, or add a custom rule to prevent the cloudflare anti-bot measures from stopping coder |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #9124 on August 16, 2023 15:48.