ubuntu 20
login as user with sudo privileges
sudo apt update -y
curl -fsSL https://code-server.dev/install.sh | sh
sudo systemctl enable --now code-server@$USER
change settings for password bind address and more on this file:
~/.config/code-server/config.yaml
and restart code server after you make changes
sudo systemctl restart code-server@$USER
sudo a2enmod proxy proxy_http proxy_uwsgi proxy_wstunnel
sudo systemctl restart apache2
for proxy:
code-server --host 127.0.0.1 --bind-addr 0.0.0.0:8080 --auth password --link
for spsific code server version see https://github.com/coder/code-server/releases
version that working with socket under SSL Load Balancer:
AMD:
curl -sLO https://github.com/coder/code-server/releases/download/v4.9.1/code-server_4.9.1_amd64.deb && sudo dpkg -i code-server_4.9.1_amd64.deb
ARM:
curl -sLO https://github.com/coder/code-server/releases/download/v4.9.1/code-server_4.9.1_arm64.deb && sudo dpkg -i code-server_4.9.1_arm64.deb