Giter Club home page Giter Club logo

code-server-ide's Introduction

vscode-server-ide

Utilities to transform any Ubuntu machine into a VSCode cloud IDE where you can run any docker-compose projects, with custom DNS.

Features

  • Edit with VSCode (install it as native shortcut in Chrome!)
  • Run docker-compose projects
  • Self configure DNS entry
  • Automatic reverse proxy with SSL for any container

IDE Basic Auth

VSCode web interface is protected by basic auth with an .htpasswd file stored in ~/vscode-ide/data/.htpasswd.

In order to make changes to the list of available users, cd ~/vscode-ide/data.

# Add New User / Change password
htpasswd .htpasswd {username} 

NOTE: After changing the password it is necessary to reload Traefik:

# reboot the IDE
(cd ~/vscode-ide && docker-compose down && docker-compose up -d)

# reboot the machine
sudo reboot

Setup GitHub

The system generates an id_rsa file at setup time, that file is then loaded into the ssh-agent at boot time. Add it's public key to GitHub for a smooth experience.

cat ~/.ssh/id_rsa.pub

Also, you need to add GitHub to the .ssh/known_hosts:

CloudFlare DNS

In order to automatically setup a DNS entry for your development machine you need 2 pieces of information:

  • API Key
  • ZoneID

API Key

My Profile > API Tokens > Create token

From the top-right menu, navigate to My Profile, then to API Tokens.

You need to create a new token using the Edit zone DNS template.

ZoneID

Enter CloudFlare admin, navigate to the domain's Overview panel and scroll down the page until you spot Zone ID on the right-hand panel.

Copy that value.

Troubleshooting

Cmd + z

This key binding does not work by default on OSX (it mapped to Cmd + y).

As a temporary solution:

  • open File > Preferences > Settings
  • search keyboard.dispatch
  • change to: keyCode

Some details are available here:
coder/code-server#1477

code-server-ide's People

Contributors

marcopeg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.