Skip to content

Commit 1757299

Browse files
committed
Release v4.99.3
1 parent 5d5b7b1 commit 1757299

File tree

4 files changed

+56
-31
lines changed

4 files changed

+56
-31
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ Code v99.99.999
2222

2323
## Unreleased
2424

25+
Code v1.99.3
26+
27+
### Added
28+
29+
- Added `--skip-auth-preflight` flag to let preflight requests through the
30+
proxy.
31+
32+
### Changed
33+
34+
- Update to Code 1.99.3.
35+
2536
## [4.99.2](https://github.com/coder/code-server/releases/tag/v4.99.2) - 2025-04-10
2637

2738
Code v1.99.2

Diff for: ci/helm-chart/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.26.2
18+
version: 3.26.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 4.99.2
23+
appVersion: 4.99.3

Diff for: ci/helm-chart/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replicaCount: 1
66

77
image:
88
repository: codercom/code-server
9-
tag: '4.99.2'
9+
tag: '4.99.3'
1010
pullPolicy: Always
1111

1212
# Specifies one or more secrets to be used when pulling images from a

Diff for: docs/guide.md

+42-28
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,22 @@ access code-server on an iPad or do not want to use SSH port forwarding.
119119

120120
1. This option requires that the remote machine be exposed to the internet. Make sure that your instance allows HTTP/HTTPS traffic.
121121

122-
1. You'll need a domain name (if you don't have one, you can purchase one from
122+
2. You'll need a domain name (if you don't have one, you can purchase one from
123123
[Google Domains](https://domains.google.com) or the domain service of your
124124
choice). Once you have a domain name, add an A record to your domain that contains your
125125
instance's IP address.
126126

127-
1. Install [Caddy](https://caddyserver.com/docs/download#debian-ubuntu-raspbian):
127+
3. Install [Caddy](https://caddyserver.com/docs/download#debian-ubuntu-raspbian):
128128

129-
```console
130-
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
131-
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
132-
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
133-
sudo apt update
134-
sudo apt install caddy
135-
```
129+
```console
130+
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
131+
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
132+
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
133+
sudo apt update
134+
sudo apt install caddy
135+
```
136136

137-
1. Replace `/etc/caddy/Caddyfile` using `sudo` so that the file looks like this:
137+
4. Replace `/etc/caddy/Caddyfile` using `sudo` so that the file looks like this:
138138

139139
```text
140140
mydomain.com {
@@ -153,7 +153,7 @@ sudo apt install caddy
153153

154154
Remember to replace `mydomain.com` with your domain name!
155155

156-
1. Reload Caddy:
156+
5. Reload Caddy:
157157

158158
```console
159159
sudo systemctl reload caddy
@@ -164,21 +164,22 @@ At this point, you should be able to access code-server via
164164

165165
### Using Let's Encrypt with NGINX
166166

167-
1. This option requires that the remote machine be exposed to the internet. Make sure that your instance allows HTTP/HTTPS traffic.
167+
1. This option requires that the remote machine be exposed to the internet. Make
168+
sure that your instance allows HTTP/HTTPS traffic.
168169

169-
1. You'll need a domain name (if you don't have one, you can purchase one from
170+
2. You'll need a domain name (if you don't have one, you can purchase one from
170171
[Google Domains](https://domains.google.com) or the domain service of your
171172
choice). Once you have a domain name, add an A record to your domain that contains your
172173
instance's IP address.
173174

174-
1. Install NGINX:
175+
3. Install NGINX:
175176

176177
```bash
177178
sudo apt update
178179
sudo apt install -y nginx certbot python3-certbot-nginx
179180
```
180181

181-
1. Update `/etc/nginx/sites-available/code-server` using sudo with the following
182+
4. Update `/etc/nginx/sites-available/code-server` using sudo with the following
182183
configuration:
183184

184185
```text
@@ -196,16 +197,13 @@ At this point, you should be able to access code-server via
196197
}
197198
}
198199
```
199-
200200
Be sure to replace `mydomain.com` with your domain name!
201201

202-
1. Enable the config:
203-
202+
5. Enable the config:
204203
```console
205204
sudo ln -s ../sites-available/code-server /etc/nginx/sites-enabled/code-server
206205
sudo certbot --non-interactive --redirect --agree-tos --nginx -d mydomain.com -m [email protected]
207206
```
208-
209207
Be sure to replace `[email protected]` with your actual email.
210208

211209
At this point, you should be able to access code-server via
@@ -292,7 +290,9 @@ redirect all HTTP requests to HTTPS.
292290
> You can use [Let's Encrypt](https://letsencrypt.org/) to get a TLS certificate
293291
> for free.
294292
295-
Note: if you set `proxy_set_header Host $host;` in your reverse proxy config, it will change the address displayed in the green section of code-server in the bottom left to show the correct address.
293+
Note: if you set `proxy_set_header Host $host;` in your reverse proxy config, it
294+
will change the address displayed in the green section of code-server in the
295+
bottom left to show the correct address.
296296

297297
## Accessing web services
298298

@@ -378,14 +378,16 @@ PUBLIC_URL=/absproxy/3000 \
378378
BROWSER=none yarn start
379379
```
380380

381-
You should then be able to visit `https://my-code-server-address.io/absproxy/3000` to see your app exposed through
382-
code-server!
381+
You should then be able to visit
382+
`https://my-code-server-address.io/absproxy/3000` to see your app exposed
383+
through code-server.
383384

384385
> We highly recommend using the subdomain approach instead to avoid this class of issue.
385386
386387
### Proxying to a Vue app
387388

388-
Similar to the situation with React apps, you have to make a few modifications to proxy a Vue app.
389+
Similar to the situation with React apps, you have to make a few modifications
390+
to proxy a Vue app.
389391

390392
1. add `vue.config.js`
391393
2. update the values to match this (you can use any free port):
@@ -406,7 +408,8 @@ Read more about `publicPath` in the [Vue.js docs](https://cli.vuejs.org/config/#
406408

407409
### Proxying to an Angular app
408410

409-
In order to use code-server's built-in proxy with Angular, you need to make the following changes in your app:
411+
In order to use code-server's built-in proxy with Angular, you need to make the
412+
following changes in your app:
410413

411414
1. use `<base href="./.">` in `src/index.html`
412415
2. add `--serve-path /absproxy/4200` to `ng serve` in your `package.json`
@@ -415,7 +418,8 @@ For additional context, see [this GitHub Discussion](https://github.com/coder/co
415418

416419
### Proxying to a Svelte app
417420

418-
In order to use code-server's built-in proxy with Svelte, you need to make the following changes in your app:
421+
In order to use code-server's built-in proxy with Svelte, you need to make the
422+
following changes in your app:
419423

420424
1. Add `svelte.config.js` if you don't already have one
421425
2. Update the values to match this (you can use any free port):
@@ -436,9 +440,19 @@ For additional context, see [this Github Issue](https://github.com/sveltejs/kit/
436440

437441
### Prefixing `/absproxy/<port>` with a path
438442

439-
This is a case where you need to serve an application via `absproxy` as explained above while serving `codeserver` itself from a path other than the root in your domain.
443+
This is a case where you need to serve an application via `absproxy` as
444+
explained above while serving code-server itself from a path other than the root
445+
in your domain.
440446

441-
For example: `http://my-code-server.com/user/123/workspace/my-app`. To achieve this result:
447+
For example: `http://my-code-server.com/user/123/workspace/my-app`. To achieve
448+
this result:
442449

443-
1. Start code server with the switch `--abs-proxy-base-path=/user/123/workspace`
450+
1. Start code-server with the switch `--abs-proxy-base-path=/user/123/workspace`
444451
2. Follow one of the instructions above for your framework.
452+
453+
### Preflight requests
454+
455+
By default, if you have auth enabled, code-server will authenticate all proxied
456+
requests including preflight requests. This can cause issues because preflight
457+
requests do not typically include credentials. To allow all preflight requests
458+
through the proxy without authentication, use `--skip-auth-preflight`.

0 commit comments

Comments
 (0)