code-server by coder
This project provides a version of VS Code that runs a server on a remote machine and allows access through a modern web browser.
Find the project repo ” in GitLab; but essentially it running the code and terminal command on a remote machine. That can be in the cloud, on .
Many people will not need this functionality, the costs of cloud hosting and processing might not be appealing. My use-case is I like to code on really underpowered machines. One of those is my beloved 2012 macbook air 11” with 2 cores. It light as a feather sits on my lap nice and looks like some sort of knife.
it would be
brew install code-server
brew services start code-server
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
and opening the config.yaml would look something like this:
bind-addr: localhost:8080
auth: password
password: password
cert: false
At this point you could navigate to
What's missing so far, is the SSL cert and https:// hosting, this is important / cool because firstly you shouldn't have a tunnel to your local machine unencrypted and cool because they provide a PWA
Even better and what I opted for is a holds special meaning to caddy and certs.
Now to the reverse proxy we can create one in the Caddyfile like so
coder.localhost, mbp.local {
reverse_proxy 0.0.0.0:8080
}
I've added my mac host name also to be served on my LAN with https. Repeat this proxy and /hosts setup on your remote machine (minus mbp.local) you can now access and run you host instance on your remote machines.
You can even code on you mobile phone or ipad etc through " if you go down this route, you should implement some security, Caddy has all you need JWT protection IP allowlisting and more.
SOCIAL SHARE CARD GENERATOR