Remix.run Logo
kosolam 4 days ago

I’m also vibing from the iphone. Termius connects via ssh to remote server where I run claude code. Ssh connects also over a wireguard connection. So ports are not an issue because they are all available via wg in a secure way. Additionally I have code server running there automatically port forwards and giving me ssl. So when I run “pnpm dev” in tmux in ssh then I access it via https://3000.dev.mydomain.com which works great for development.

hrimfaxi 4 days ago | parent [-]

Can you speak more to the code server and domain set up? How do you get it to auto provision subdomains?

kosolam 4 days ago | parent [-]

Sure, code-server is a web version of vscode, like the github spaces thing only selfhosted.

I have acme.sh creating the certs using let’s encrypt. I have a reverse proxy (haproxy) in front of code server. This handles ssl.

The port forwarding and mapping to a subdomain is automatic - it’s a feature of code server: https://coder.com/docs/code-server/guide

From the docs: code-server --proxy-domain <domain>

hrimfaxi 3 days ago | parent [-]

Thanks for the details!