40 Commits

Author SHA1 Message Date
00d164b67f Add default config file and improve config/data directory detection 2020-05-12 19:59:54 -04:00
27ba64c7e4 Improve request error handling
See #1532 for more context.

- Errored JSON requests will get back the error in JSON instead of using
  the status text. This seems better to me because it seems more correct
  to utilize the response body over hijacking the status text. The
  caller is expecting JSON anyway. Worst of all I never actually set the
  status text like I thought I did so it wasn't working to begin with.
- Allow the update error to propagate for JSON update requests. It was
  caught to show the error inline instead of an error page when using
  the update page but for JSON requests it meant there was no error and
  no error code so it looked like it succeeded.
- Make errors for failed requests to GitHub less incomprehensible.
  Previously they would just be the code which is no context at all.
2020-04-17 15:16:10 -05:00
28e91ba70c Fix domain issues when setting the cookie
Fixes #1507.
2020-04-13 16:14:40 -05:00
a288351ad4 Respond when proxy errors
Otherwise the request will just hang.
2020-04-08 11:54:18 -05: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
411c61fb02 Create helper for determining if route is the root 2020-04-02 13:40:26 -05:00
e7e7b0ffb7 Fix redirects through subpath proxy 2020-04-02 13:40:25 -05:00
c0dd29c591 Fix domains with ports & localhost subdomains 2020-04-02 13:40:20 -05:00
8aa5675ba2 Implement the actual proxy 2020-04-02 13:40:19 -05:00
2086648c87 Only handle exact domain matches
This simplifies the logic a bit.
2020-04-02 13:40:18 -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
77ad73d579 Set domain on cookie
This allows it to be used in subdomains.
2020-04-02 13:40:15 -05:00
13534fa0c0 Add proxy-domain flag
This will be used for proxying ports.
2020-04-02 13:40:14 -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
d832f61d5b Make client-side extensions work at any base 2020-03-16 12:04:09 -05:00
6cb228037b Add base path to update endpoint from VS Code
This will make it work regardless of what the current URL happens to be.

Also move the telemetry setting into the options since we might as well
make use of it seeing as how we have to parse it for the base path
anyway.
2020-03-13 16:44:56 -05:00
253cf1c438 Remove unnecessary return types 2020-03-11 16:06:32 -05:00
e0e019fbd5 Fix mime type for compressed client-side extensions
In Firefox using the gzip mime type will (probably correctly) cause it
not to decompress while in Chromium it still will (incorrectly).
2020-03-02 18:24:35 -06:00
ccd01c49b9 Integrate update notifications into VS Code 2020-03-02 15:01:24 -06:00
069c5230cd Move VS Code to the root 2020-03-02 12:55:34 -06:00
88cab27165 Compress when sending client-side extension tars 2020-02-28 14:25:28 -06:00
963ebaca5b Register a service worker
To make installing as a PWA possible. Fixes #1181.
2020-02-27 16:37:00 -06:00
21cfeb9da0 Add the ability to kill running VS Code instance 2020-02-27 12:04:23 -06:00
4c6e4bedeb Fix port being randomized
Also make it a number.
2020-02-24 16:49:10 -06:00
bd7583a254 Obey process.env.PORT 2020-02-21 14:49:58 -05:00
319cd3f7ab Make updating work for both binary and loose releases 2020-02-20 18:48:16 -06:00
c567a06ff5 Fix HTTPS redirects and TLS sockets
It still won't work behind a base path, but if you're using a reverse
proxy you can just redirect to HTTPS yourself. And should probably
handle TLS termination there too.

For sockets I just needed to add back the proxy call.
2020-02-19 17:59:12 -06:00
1a54f6b7ef Merge remote-tracking branch 'origin/restructure' into anmol-restructure 2020-02-18 12:52:29 -05:00
4aa15401c3 Format and lint 2020-02-14 20:00:19 -05:00
db54f78e8e Implement automatic updates 2020-02-14 15:58:39 -06:00
b8fa7da972 Simplify frontend
Just a login form and a list of applications. No modals or anything like
that.
2020-02-13 20:10:14 -06:00
bf1be16d11 Fix base path
Now it should work whether you have a trailing slash or not.
2020-02-13 12:41:58 -06:00
6cebfa469d Generalize initial app logic 2020-02-05 18:47:00 -06:00
4cc181cedc Make routing base path agnostic 2020-02-05 17:38:21 -06:00
6e809b6a31 Handle when VS Code fails to load
This is mostly for development where VS Code might not have finished
compiling yet.
2020-02-05 14:23:42 -06:00
8cc11d1688 Improve routing 2020-02-05 13:07:07 -06:00
dbc5c065f8 Improve HTTP provider registration 2020-02-04 16:55:27 -06:00
b29346ecdf Implement new structure 2020-02-04 14:31:44 -06:00