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