60 Commits

Author SHA1 Message Date
7d02f34f71 Merge pull request #1934 from cdr/plugin
Add plugin system for adding http endpoints
2020-08-13 16:59:44 -05:00
6e27869c09 Add str param to plural util
Adds a str param to common/util::plural for pluralizing a string.
Applies plural to entry.ts.
2020-08-09 00:06:18 -05:00
bac948ea6f Add plugin system 2020-07-31 15:08:02 -05:00
58bd7008b4 Make dispose async 2020-07-29 18:48:04 -05:00
e8f6d30055 Make providers endpoint-agnostic
A provider can now be registered on multiple endpoints (or potentially
moved if needed).
2020-07-27 12:00:48 -05:00
2819fd51e2 Remove unused endpoints
- dashboard
- app api
2020-07-27 12:00:42 -05:00
11d7932968 Stop bundling libraries in release
- Instead we now use CentOS 7 for the static build to guarantee
  that we only depend on libc v2.17

- For macOS we now pull in a static node binary and bundle that instead.
2020-06-03 15:45:16 -04:00
2c2a6498af Parse config file in entry
This way setting --data-dir and --extension-dir in the config file
will work for --install--extension and whatnot.
2020-06-03 15:45:16 -04:00
7ab47b3d83 Trim LD_LIBRARY_PATH on startup 2020-06-03 15:45:16 -04:00
9d0dcf3c44 Fix extension install path for CLI
Closes #1713
2020-05-27 14:28:40 -04:00
8053ec6872 Allow user-data-dir and extension-dir in config.yaml
Closes #1676
2020-05-19 00:41:27 -04:00
c69346a9a7 Add FAQ entry on the config file 2020-05-14 18:35:35 -04:00
5651201643 Copy old macOS data directory if applicable 2020-05-14 06:12:33 -04:00
c0d6eb4664 Improve password handling
- Error out if auth is enabled but no password is passed in
- Indicate password location on login page
2020-05-12 19:59:55 -04:00
1e432b25ea Comment on hash(password) 2020-05-12 19:59:54 -04:00
d6ea9d78f6 Configuration file bug fixes based on @code-asher's review 2020-05-12 19:59:54 -04:00
d288131a33 Fix lint errors 2020-05-12 19:59:54 -04:00
e02d94ad2f Allow password authentication in the config file 2020-05-12 19:59:54 -04:00
4f67f4e096 Disable automatic updates 2020-05-12 19:59:54 -04:00
00d164b67f Add default config file and improve config/data directory detection 2020-05-12 19:59:54 -04:00
c5179c2a06 Add support for a YAML config file 2020-05-12 19:59:53 -04:00
1898dea314 Unset $PASSWORD after grabbing it
Closes #1583
2020-05-04 22:41:21 -04:00
af28885ea6 Deprecate --host and --port in favour of --bind-addr 2020-04-28 14:19:24 -04:00
d0d5461a67 Remove SSH server
Closes #1502
2020-04-27 09:27:45 -04:00
a5d1d3b90e Move proxy logic into main HTTP server
This makes the code much more internally consistent (providers just
return payloads, include the proxy provider).
2020-04-02 13:40:29 -05:00
aaa6c279a1 Use Set for proxy domains 2020-04-02 13:40:28 -05:00
3a98d856a5 Handle authentication with proxy
The cookie will be set for the proxy domain so it'll work for all of its
subdomains.
2020-04-02 13:40:17 -05:00
90fd1f7dd1 Add proxy provider
It'll be able to handle /proxy requests as well as subdomains.
2020-04-02 13:40:16 -05:00
13534fa0c0 Add proxy-domain flag
This will be used for proxying ports.
2020-04-02 13:40:14 -05:00
37299abcc9 Minor startup code improvements
- Add type to HTTP options.
- Fix certificate message always saying it was generated.
- Dedent output not directly related to the HTTP server.
- Remove unnecessary comma.
2020-04-02 13:40:13 -05:00
a4c0fd1fdc Run ssh server listen after http
That way if they happen to conflict code-server doesn't crash.
2020-03-30 17:43:11 -05:00
6c104c016e Prevent exiting when an exception is uncaught 2020-03-30 17:43:10 -05:00
599670136d Output commit along with the version 2020-03-30 17:43:09 -05:00
d1687c1533 Catch error when SSH server fails to start 2020-03-24 17:38:46 -05:00
b52fbb4cb9 Catch error when openssl isn't installed 2020-03-16 15:14:54 -05:00
3463d56114 SSH server & endpoint 2020-03-16 15:14:53 -05:00
d192726e80 Simplify dashboard 2020-03-16 15:14:50 -05:00
069c5230cd Move VS Code to the root 2020-03-02 12:55:34 -06:00
a8914b025f Output code-server version on startup 2020-02-28 13:30:21 -06:00
21cfeb9da0 Add the ability to kill running VS Code instance 2020-02-27 12:04:23 -06:00
c870398c86 Switch to loose files
For #1306.
2020-02-25 18:23:35 -06:00
4c6e4bedeb Fix port being randomized
Also make it a number.
2020-02-24 16:49:10 -06:00
04e449c546 Require cert-key with cert
Fixes #1312.
2020-02-24 15:01:59 -06:00
bd7583a254 Obey process.env.PORT 2020-02-21 14:49:58 -05:00
80b2d9481f Don't display stack trace for cli parse failures
Just display the error message and exit. The stack trace isn't necessary
(since it's likely user error) and is potentially confusing.
2020-02-19 11:15:39 -06:00
46d6e17508 Prepare for release
- Add VS Code icon
- Trim dashboard to just display dedicated VS Code section
- Version was getting unset during build
- Add back nbin shim which I temporarily took out earlier
- Update tests for log level env var changes
2020-02-18 17:31:23 -06:00
8793110941 Implement endpoint for getting recent directories 2020-02-18 14:13:22 -06:00
f6b092b12d Merge branch 'restructure' 2020-02-18 13:30:37 -06:00
39a57700bc Enable access to vscode cli 2020-02-18 12:24:12 -06:00
1a54f6b7ef Merge remote-tracking branch 'origin/restructure' into anmol-restructure 2020-02-18 12:52:29 -05:00