- Visit the releases page and
download the latest binary for your operating system.
- Unpack the downloaded file then run the binary.
- In your browser navigate to
localhost:8080.
Usage
Run code-server --help to view available options.
Encrypting traffic with HTTPS
To encrypt the traffic between the browser and server use code-server --cert
followed by the path to your certificate. Additionally, you can use certificate
keys with --cert-key followed by the path to your key. If you pass --cert
without any path code-server will generate a self-signed certificate.
You can use Let's Encrypt to get an SSL certificate
for free.
Nginx Reverse Proxy
The trailing slashes are important.
Apache Reverse Proxy
Run automatically at startup
In some cases you might need to run code-server automatically once the host starts. You may use your local init service to do so.
Systemd
OpenRC
Kubernetes/Docker
Make sure you set your restart policy to always - this will ensure your container starts as the daemon starts.