coder + cloudflare tunnel (Linux debian)
As the title suggests, I've been trying to get this to work with no look.
If anyone has any advice, I would greatly appreciate it.
Issue:
I can't seem to open coder in localhost:3000 if I could, I think the tunnel would work, since I'm pointing it to localhost:3000
🤔
30 Replies
<#1211011223618064484>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Hey, I might have a similar setup, did you succeed in doing it? I maybe able to help
Sorry m8 didn't notice your message
Sadly not been rather frustrating tbh
What type of setup do you have? 🤔
Usually when you run coder server, the log will show you , what your log looks like?
I run coder server in tmux, usually with a script to assign env var, but you dont really need to.
Is this the first time you use cloudflare tunnel?
Yup it shows http://localhost:3000
I can't access it tho through a browser which one thought
Unless I use the coder.com proxy tunnel
I assume you assign the var that is the 'CODER_ACCESS_URL'
You cant access with local browser?
I dont know how you run it tho
Hmmm
When I run other services that are running local then the tunnel works 🤔
I only tried localhost:3000 but that should point to that tho 🤔
Likely a firewall issue if you cant access it with local browser
Ahhhh
You might be onto something there 🤔🤔🤔🤔🤔
With what you said there then, it should be accessible? 🤔
Cus I would have thought so
The coder tunnel should just hook onto it
That i dont know how they do it, but if you followed the installation process, it should work, else you gotta check with your system
Possible that coder run something that trigger firewall or smth
🤔
Their proxy is only recommended for debugging I think
Yea
You shouldn't rely on it
I wouldn't trust
Currently setting up a home server
Then use the cloudflare tunnel to protect it etc
I just find it weird 🤔
I use docker
For a example
I can just get phpmyadmin in docker
Run in
Oh did you run coder in docker?
Yea 🤔
Omg
Ye
Gotta expose port
🤦♂️
I usually use docker compose for this stuff
Because it easier to expose ports
I will apologise, I didn't mention I used docker 🤦♂️
Thought I did... rip
But I will look into the docker compose
Wish the coder doc mentioned it cus plonkers like me won't look like a tit 🤣
No i think it better to run coder locally
Do you think so? 🤔
Because if you run coder in docker
Later when you create env to code, it will be something like container inside container
I cant remember what it's called tho, but lots of headache to deal with
Hmmm 🤔
Well with what you have said I think I'll do loclly
Thanks for your help man
You've been a gem 👍
Can give you some money to buy a beer 😏👍
Best to run with systemd, but I already run it with tmux and too lazy to reconfig it 🤣
Later when you create env to code, it will be something like container inside container I cant remember what it's called tho, but lots of headache to deal withThis is not correct. We mount the host docker unix socket to the coder container so it can create workspace containers on the host So running Coder as a systemd service or inside a container will not have any effect on your docker workspaces.
Thanks for that info 👍