Skip to content

Commit d4ed2ef

Browse files
committed
Change default port to 8080
1 parent 2b3e8e1 commit d4ed2ef

File tree

8 files changed

+21
-22
lines changed

8 files changed

+21
-22
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ WORKDIR /home/coder/project
5252
VOLUME [ "/home/coder/project" ]
5353

5454
COPY --from=0 /src/build/code-server /usr/local/bin/code-server
55-
EXPOSE 8443
55+
EXPOSE 8080
5656

5757
ENTRYPOINT ["dumb-init", "code-server", "--host", "0.0.0.0"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ remote server, accessible through the browser.
55

66
Try it out:
77
```bash
8-
docker run -it -p 127.0.0.1:8443:8443 -v "$PWD:/home/coder/project" codercom/code-server
8+
docker run -it -p 127.0.0.1:8080:8080 -v "$PWD:/home/coder/project" codercom/code-server
99
```
1010

1111
- **Consistent environment:** Code on your Chromebook, tablet, and laptop with a
@@ -34,7 +34,7 @@ arguments when launching code-server with Docker. See
3434
1. [Download a binary](https://github.com/cdr/code-server/releases). (Linux and
3535
OS X supported. Windows coming soon)
3636
2. Unpack the downloaded file then run the binary.
37-
3. In your browser navigate to `localhost:8443`.
37+
3. In your browser navigate to `localhost:8080`.
3838

3939
- For self-hosting and other information see [doc/quickstart.md](doc/quickstart.md).
4040
- For hosting on cloud platforms see [doc/deploy.md](doc/deploy.md).
@@ -90,7 +90,7 @@ yarn watch
9090
# Wait for the initial compilation to complete (it will say "Finished compilation").
9191
# Run the next command in another shell.
9292
yarn start
93-
# Visit http://localhost:8443
93+
# Visit http://localhost:8080
9494
```
9595

9696
If you run into issues about a different version of Node being used, try running

doc/cros-install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you run R72, however, this is already enabled for you.
1616

1717
After checking your prerequisites, follow the steps in [the self-host install guide](index.md)
1818
on installing code-server. Once done, make sure code-server works by running
19-
it. After running it, simply go to `penguin.linux.test:8443` to access
19+
it. After running it, simply go to `penguin.linux.test:8080` to access
2020
code-server. Now you should be greeted with this screen. If you did,
2121
congratulations, you have installed code-server in your Chromebook!
2222

@@ -69,7 +69,7 @@ enter `enter-chroot` to enter your container.
6969
7070
Follow the instructions set in [the self-host install guide](index.md) to
7171
install code-server. After that is done, run `code-server` and verify it works
72-
by going to `localhost:8443`.
72+
by going to `localhost:8080`.
7373
7474
> At this point in writing, `localhost` seems to work in this method. However,
7575
> the author is not sure if it applies still to newer Chromebooks.

doc/deploy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
on team size and number of repositories/languages enabled), then
77
**Next: Configure Instance Details**.
88
- Select **Next: ...** until you get to the **Configure Security Group** page,
9-
then add a **Custom TCP Rule** rule with port range set to `8443` and source
9+
then add a **Custom TCP Rule** rule with port range set to `8080` and source
1010
set to "Anywhere".
1111
> Rules with source of 0.0.0.0/0 allow all IP addresses to access your
1212
> instance. We recommend setting [security group rules](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html?icmpid=docs_ec2_console)
@@ -51,9 +51,9 @@ to create a new droplet
5151
go to the "Networking" tab, then under network tags add "code-server".
5252
- Create your VM, and **take note** of its public IP address.
5353
- Visit "VPC network" in the console and go to "Firewall rules". Create a new
54-
firewall rule called "http-8443". Under "Target tags" add "code-server", and
54+
firewall rule called "http-8080". Under "Target tags" add "code-server", and
5555
under "Protocols and ports" tick "Specified protocols and ports" and "tcp".
56-
Beside "tcp", add "8443", then create the rule.
56+
Beside "tcp", add "8080", then create the rule.
5757
- Open a terminal on your computer and SSH into your Google Cloud VM:
5858
```
5959
gcloud compute ssh --zone ${region} ${instance name}
@@ -68,6 +68,6 @@ to create a new droplet
6868
cd code-server{version}-linux-x64
6969
./code-server
7070
```
71-
- Open your browser and visit http://$public_ip:8443/ where `$public_ip` is
71+
- Open your browser and visit http://$public_ip:8080/ where `$public_ip` is
7272
your instance's public IP address.
7373
- For long-term use, set up a systemd service to run code-server.

doc/examples/kubernetes.aws.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
namespace: code-server
1111
spec:
1212
ports:
13-
- port: 8443
13+
- port: 8080
1414
name: https
1515
protocol: TCP
1616
selector:
@@ -62,7 +62,7 @@ spec:
6262
imagePullPolicy: Always
6363
name: code-servery
6464
ports:
65-
- containerPort: 8443
65+
- containerPort: 8080
6666
name: https
6767
volumeMounts:
6868
- name: code-server-storage
@@ -71,4 +71,3 @@ spec:
7171
- name: code-server-storage
7272
persistentVolumeClaim:
7373
claimName: code-store
74-

doc/examples/kubernetes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
namespace: code-server
1111
spec:
1212
ports:
13-
- port: 8443
13+
- port: 8080
1414
name: https
1515
protocol: TCP
1616
selector:
@@ -39,5 +39,5 @@ spec:
3939
imagePullPolicy: Always
4040
name: code-server
4141
ports:
42-
- containerPort: 8443
42+
- containerPort: 8080
4343
name: https

doc/quickstart.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
1. Visit the [releases page](https://github.com/cdr/code-server/releases) and
33
download the latest binary for your operating system.
44
2. Unpack the downloaded file then run the binary.
5-
3. In your browser navigate to `localhost:8443`.
5+
3. In your browser navigate to `localhost:8080`.
66

77
## Usage
88
Run `code-server --help` to view available options.
@@ -25,7 +25,7 @@ server {
2525
listen [::]:80;
2626
server_name code.example.com code.example.org;
2727
location /some/path/ { # Or / if hosting at the root.
28-
proxy_pass http://localhost:8443/;
28+
proxy_pass http://localhost:8080/;
2929
proxy_set_header Host $host;
3030
proxy_set_header Upgrade $http_upgrade;
3131
proxy_set_header Connection upgrade;
@@ -41,17 +41,17 @@ server {
4141
4242
RewriteEngine On
4343
RewriteCond %{HTTP:Upgrade} =websocket [NC]
44-
RewriteRule /(.*) ws://localhost:8443/$1 [P,L]
44+
RewriteRule /(.*) ws://localhost:8080/$1 [P,L]
4545
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
46-
RewriteRule /(.*) http://localhost:8443/$1 [P,L]
46+
RewriteRule /(.*) http://localhost:8080/$1 [P,L]
4747
4848
ProxyRequests off
4949
5050
RequestHeader set X-Forwarded-Proto https
5151
RequestHeader set X-Forwarded-Port 443
5252
53-
ProxyPass / http://localhost:8443/ nocanon
54-
ProxyPassReverse / http://localhost:8443/
53+
ProxyPass / http://localhost:8080/ nocanon
54+
ProxyPassReverse / http://localhost:8080/
5555
5656
</VirtualHost>
5757
```

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const startVscode = async (): Promise<void | void[]> => {
120120

121121
const server = new MainServer({
122122
...options,
123-
port: typeof args.port !== "undefined" && parseInt(args.port, 10) || 8443,
123+
port: typeof args.port !== "undefined" && parseInt(args.port, 10) || 8080,
124124
socket: args.socket,
125125
}, args);
126126

0 commit comments

Comments
 (0)