Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 2.55 KB

code-server.md

File metadata and controls

34 lines (19 loc) · 2.55 KB

Code-Server Docker FAQ

Q1. I'm seeing an error in the Web UI that states Error loading webview: Error: Could not register service workers: S..., what is it and how can i stop it appearing?

A1. This error is caused by the use of self-signed certificates, which by default this container uses. The error can be triggered by simply going to an extesion and attempting to view the 'Details' tab.

To Fix this issue please see Q2. or Q3.

Q2. I want to switch from using a self-signed cert to a valid certificate from a authorised certificate authority, how do i do this?.

A2. Once you have the certificate issued from your certificate authority then you can use the following procedure to configure code-server to use the cert:-

  1. Stop the container
  2. Copy the certificate and key to /config/code-server/certs/
  3. Set the value for variable key CERT_PATH to the path for the cert e.g. /config/code-server/certs/mycert.crt and set the value for variable key CERT_KEY_PATH to the path for the cert key e.g. /config/code-server/certs/mycert.key.
  4. Start container

Q3. I want to use the the certificate generated by the cloud provider (in this case CDR), can you please tell me how to do this?.

A3. To do this simple set variable key BIND_CLOUD_NAME to have a value of <name you want>, then check the log file /config/supervisord/log for URL to authorise CDR (cloud provider) with GitHub.

Q4. I want to use a reverse proxy such as SWAG or NPM with Code-Server so i can access it externally, in order to do this i need to switch over to HTTP, how do i do this?.

A4. To do this simple set variable key SELF_SIGNED_CERT to have a value of no, also ensure variable keys CERT_PATH and CERT_KEY_PATH both have blank values, otherwise they will take presedence over the value set for SELF_SIGNED_CERT.

Q5. I would like to include application/tool/scripting language XXXX in Code-Server, how do i do this?.

A5. You can install applications by specifying the package name from AOR (Arch Official Repository) or from AUR (Arch User Repository), please see example script file located at /config/code-server/scripts/example-startup-script.sh for how to install packages.

Note You will need to ensure that env var ENABLE_STARTUP_SCRIPTS is set to yes otherwise no execution of the script(s) will take place.

Q6. I want to use the GitHub integration with Code-Server but i don't know what the steps are, can you please tell me how to do this?.

A6. TBD.