વિકાસ સાધનો
ગમે ત્યાં રિમોટ ડેવલપમેન્ટ માટે બ્રાઉઝરમાં VS કોડ ચાલી રહ્યો છે
બધી સુવિધાઓ સાથે સંપૂર્ણ VS Code અનુભવ - IntelliSense, ડિબગિંગ, એક્સ્ટેન્શન, થીમ અને ઇન્ટિગ્રેટેડ ટર્મિનલ
બ્રાઉઝરવાળા કોઈપણ ઉપકરણ પરથી તમારા ડેવલપમેન્ટ વાતાવરણની ઍક્સેસ - ટેબ્લેટ, Chromebook કે કોઈપણ કમ્પ્યુટર
બ્રાઉઝરમાં પ્રતિભાવશીલ રીતે કોડ એડિટ કરતી વખતે કમ્પાઇલેશન, ટેસ્ટિંગ અને બિલ્ડ માટે સર્વર હાર્ડવેરનો ઉપયોગ કરો
લેંગ્વેજ સર્વર, લિન્ટર, ફોર્મેટર અને ઉત્પાદકતા સાધનો સહિત હજારો VS Code એક્સ્ટેન્શન ઍક્સેસ કરો
TLS એન્ક્રિપ્શન, પાસવર્ડ ઓથેન્ટિકેશન, રિવર્સ પ્રોક્સી દ્વારા વૈકલ્પિક OAuth2, અને અનુપાલન માટે કોડ સર્વર પર રહે છે
code-server મારફતે આપોઆપ HTTPS અને ઓથેન્ટિકેશન ટનલિંગ સાથે વેબ એપ્લિકેશનનો પ્રિવ્યૂ જુઓ
curl -fsSL https://code-server.dev/install.sh | sh2. અથવા મેન્યુઅલી ઇન્સ્ટોલ કરો:# Download latest release
VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | grep -oP '"tag_name": "v\K[^"]+')
wget https://github.com/coder/code-server/releases/download/v${VERSION}/code-server_${VERSION}_amd64.deb
# Install package
sudo dpkg -i code-server_${VERSION}_amd64.deb3. code-server ગોઠવો:# Edit config file
nano ~/.config/code-server/config.yamlસેટિંગ્સ ગોઠવો:bind-addr: 0.0.0.0:8080
auth: password
password: your_secure_password_here
cert: false # We'll use reverse proxy for SSL4. Systemd સર્વિસ બનાવો:sudo systemctl enable --now code-server@$USER
sudo systemctl status code-server@$USER5. Nginx રિવર્સ પ્રોક્સી ગોઠવો:sudo apt install nginx -y
sudo nano /etc/nginx/sites-available/code-serverકન્ફિગરેશન ઉમેરો:server {
listen 80;
server_name code.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}સાઇટ સક્ષમ કરો:sudo ln -s /etc/nginx/sites-available/code-server /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx6. SSL પ્રમાણપત્ર મેળવો:sudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d code.yourdomain.com7. code-server ઍક્સેસ કરો:https://code.yourdomain.com પર જાઓ# Via command line
code-server --install-extension ms-python.python
code-server --install-extension esbenp.prettier-vscode
# Or use Extensions panel in UI9. ફાયરવોલ ગોઠવો:sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 22/tcp # SSH10. વૈકલ્પિક - Docker ઇન્સ્ટોલેશન:# Run code-server in Docker
docker run -it --name code-server -p 127.0.0.1:8080:8080 \
-v "$HOME/.config:/home/coder/.config" \
-v "$HOME/projects:/home/coder/projects" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
codercom/code-server:latest
bind-addr: 0.0.0.0:8080
auth: password
password: secure_password_here
cert: false
proxy-domain: code.yourdomain.com2. ઓથેન્ટિકેશન પદ્ધતિઓ:# Password authentication (default)
auth: password
password: your_password
# Disable authentication (dangerous, use with reverse proxy auth)
auth: none
# Use hashed password
hashed-password: "$argon2i$v=19$m=4096,t=3,p=1$..."3. એન્વાયર્નમેન્ટ વેરિએબલ:# Set password via env
export PASSWORD="your_password"
# Disable telemetry
export TELEMETRY_LEVEL="off"
# Custom extensions directory
export EXTENSIONS_GALLERY='{"serviceUrl": "https://open-vsx.org/vscode/gallery"}'4. પોર્ટ ફોરવર્ડિંગ કન્ફિગરેશન:# Forward local dev server to public URL
# In code-server terminal:
npm run dev # Starts on localhost:3000
# code-server automatically detects and offers to forward
# Access at: https://code.yourdomain.com/proxy/3000/5. એક્સ્ટેન્શન કન્ફિગરેશન:# Install from marketplace
code-server --install-extension publisher.extension-name
# Install from VSIX
code-server --install-extension /path/to/extension.vsix
# List installed extensions
code-server --list-extensions
# Uninstall extension
code-server --uninstall-extension publisher.extension-name6. સેટિંગ્સ સિંક:// settings.json location: ~/.local/share/code-server/User/settings.json
{
"workbench.colorTheme": "Default Dark+",
"editor.fontSize": 14,
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"terminal.integrated.shell.linux": "/bin/bash"
}7. મલ્ટી-યુઝર સેટઅપ:# Create service for user1
sudo systemctl enable --now code-server@user1
# Create service for user2
sudo systemctl enable --now code-server@user2
# Each user gets own config in their home directory
# ~/.config/code-server/config.yaml8. સુરક્ષા મજબૂતીકરણ:# Limit network access
bind-addr: 127.0.0.1:8080 # Only localhost
# Use strong password (20+ chars)
password: $(openssl rand -base64 32)
# Enable HTTPS on reverse proxy
# Use fail2ban for brute force protection
sudo apt install fail2ban
# Configure fail2ban for code-server
sudo nano /etc/fail2ban/jail.localઉમેરો:[nginx-code-server]
enabled = true
port = 80,443
filter = nginx-code-server
logpath = /var/log/nginx/access.log
maxretry = 3
bantime = 36009. પ્રદર્શન ટ્યુનિંગ:# Increase file watcher limit
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
# Disable telemetry
export TELEMETRY_LEVEL=off
# Use faster protocol
# In settings.json:
{
"terminal.integrated.rendererType": "dom"
}10. બેકઅપ અને માઇગ્રેશન:# Backup user data
tar -czf code-server-backup.tar.gz \
~/.local/share/code-server \
~/.config/code-server
# Restore on new server
tar -xzf code-server-backup.tar.gz -C ~શ્રેષ્ઠ પ્રથાઓ:curl -fsSL https://code-server.dev/install.sh | shjournalctl -u code-server@$USER -fઅમારી સરળ VPS વિસ્તરણ પ્રક્રિયા સાથે મિનિટોમાં શરૂ કરો
લગભગ2મિનિટમાં સ્થાપિત કરો • સંપૂર્ણ રુટ પ્રવેશ • ટિકિટ અને ઇમેઇલ દ્વારા આધાર