This guide explains how to access code-server in your browser, connect to the code-server instance itself, and provides important notes for troubleshooting.
Open your browser and navigate to:
https://vscode.apperlabs.com/<userX>/
Replace <userX> with your assigned user number.
Use the following credentials:
- Username: userX
- Password:
DevPassword2026!
Example:
https://vscode.apperlabs.com/<user1>/
Note: The Password is DevPassword2026!
If you encounter a 504 Gateway Timeout, it usually means the web server (Nginx) or code-server service is down. Follow these steps to resolve it.
SSH into your EC2 instance:
ssh -i vscode-key.pem ubuntu@13.251.220.49Download vscode-key.pem
Run the following command to see if Nginx is running:
sudo systemctl status nginx- Inactive (dead) or Failed - Nginx needs to be started
sudo systemctl start nginxEnable it to start automatically on boot:
sudo systemctl enable nginxList all running code-server processes:
ps aux | grep code-server | grep userXIf code-server is not running, start it manually:
code-server --bind-addr 0.0.0.0:8080Adjust port if your configuration uses a different one.
After starting Nginx and ensuring code-server is running, refresh your browser:
https://vscode.apperlabs.com/<userX>/
You should now be able to log in successfully.
Example:
https://vscode.apperlabs.com/<user1>/
- Ensure your security group allows HTTPS (443) or the port your
code-serveris running on. - For multiple users, repeat the same steps for each username.
- Consider setting up systemd services for
code-serverso it automatically starts on boot.




