Skip to content

Commit 0ae8c18

Browse files
committed
Merge branch 'log-failed-logins' of github.com:cdr/code-server into log-failed-logins
2 parents e776f18 + 1046fc1 commit 0ae8c18

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

doc/admin/install/aws.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ If you're just starting out, we recommend [installing code-server locally](../..
3939
```
4040
- Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page):
4141
```
42-
wget https://github.com/cdr/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz
42+
wget https://github.com/cdr/code-server/releases/download/{version}/code-server{version}-linux-x64.tar.gz
4343
```
4444
- Extract the downloaded tar.gz file with this command, for example:
4545
```
46-
tar -xvzf code-server-{version}-linux-x64.tar.gz
46+
tar -xvzf code-server{version}-linux-x64.tar.gz
4747
```
4848
- Navigate to extracted directory with this command:
4949
```
50-
cd code-server-{version}-linux-x64
50+
cd code-server{version}-linux-x64
5151
```
5252
- If you run into any permission errors, make the binary executable by running:
5353
```

doc/admin/install/digitalocean.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ If you're just starting out, we recommend [installing code-server locally](../..
2222
```
2323
- Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page):
2424
```
25-
wget https://github.com/cdr/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz
25+
wget https://github.com/cdr/code-server/releases/download/{version}/code-server{version}-linux-x64.tar.gz
2626
```
2727
- Extract the downloaded tar.gz file with this command, for example:
2828
```
29-
tar -xvzf code-server-{version}-linux-x64.tar.gz
29+
tar -xvzf code-server{version}-linux-x64.tar.gz
3030
```
3131
- Navigate to extracted directory with this command:
3232
```
33-
cd code-server-{version}-linux-x64
33+
cd code-server{version}-linux-x64
3434
```
3535
- If you run into any permission errors when attempting to run the binary:
3636
```

doc/admin/install/google_cloud.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ https://github.com/cdr/code-server/releases/latest
3333

3434
- Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page):
3535
```
36-
wget https://github.com/cdr/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz
36+
wget https://github.com/cdr/code-server/releases/download/{version}/code-server{version}-linux-x64.tar.gz
3737
```
3838

3939
- Extract the downloaded tar.gz file with this command, for example:
4040
```
41-
tar -xvzf code-server-{version}-linux-x64.tar.gz
41+
tar -xvzf code-server{version}-linux-x64.tar.gz
4242
```
4343

4444
- Navigate to extracted directory with this command:
4545
```
46-
cd code-server-{version}-linux-x64
46+
cd code-server{version}-linux-x64
4747
```
4848

4949
- Make the binary executable if you run into any errors regarding permission:

doc/self-hosted/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ It takes just a few minutes to get your own self-hosted server running. If you'v
2525
> NOTE: Be careful with your password as sharing it will grant those users access to your server's file system
2626
2727
### Things To Know
28-
- When you visit the IP for your code-server instance, you will be greeted with a page similar to the following screenshot. Code-server is using a self-signed SSL certificate for easy setup. In Chrome/Chromium, click **"Advanced"** then click **"proceed anyway"**. In Firefox, click **Advanced**, then **Add Exception**, then finally **Confirm Security Exception**.<img src ="../../assets/chrome_warning.png">
28+
- When you visit the IP for your code-server instance, you will be greeted with a page similar to the following screenshot. Code-server is using a self-signed SSL certificate for easy setup. In Chrome/Chromium, click **"Advanced"** then click **"proceed anyway"**. In Firefox, click **Advanced**, then **Add Exception**, then finally **Confirm Security Exception**.<img src ="../assets/chrome_warning.png">
2929

3030
## Usage
3131
<pre class="pre-wrap"><code>code-server<span class="virtual-br"></span> --help</code></pre>
@@ -44,7 +44,7 @@ Options:
4444
-e, --extensions-dir <dir> Override the main default path for user extensions.
4545
--extra-extensions-dir [dir] Path to an extra user extension directory (repeatable). (default: [])
4646
--extra-builtin-extensions-dir [dir] Path to an extra built-in extension directory (repeatable). (default: [])
47-
-d --user-data-dir <dir> Specifies the directory that user data is kept in, useful when running as root.
47+
-d, --user-data-dir <dir> Specifies the directory that user data is kept in, useful when running as root.
4848
-h, --host <value> Customize the hostname. (default: "0.0.0.0")
4949
-o, --open Open in the browser on startup.
5050
-p, --port <number> Port to bind on. (default: 8443)

packages/server/src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ commander.version(process.env.VERSION || "development")
2828
.option("-e, --extensions-dir <dir>", "Override the main default path for user extensions.")
2929
.option("--extra-extensions-dir [dir]", "Path to an extra user extension directory (repeatable).", collect, [])
3030
.option("--extra-builtin-extensions-dir [dir]", "Path to an extra built-in extension directory (repeatable).", collect, [])
31-
.option("-d --user-data-dir <dir>", "Specifies the directory that user data is kept in, useful when running as root.")
31+
.option("-d, --user-data-dir <dir>", "Specifies the directory that user data is kept in, useful when running as root.")
3232
.option("--data-dir <value>", "DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored.")
3333
.option("-h, --host <value>", "Customize the hostname.", "0.0.0.0")
3434
.option("-o, --open", "Open in the browser on startup.", false)

packages/web/src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if ("serviceWorker" in navigator) {
3030
// Use the window load event to keep the page load performant
3131
window.addEventListener("load", () => {
32-
navigator.serviceWorker.register("/service-worker.js");
32+
navigator.serviceWorker.register('service-worker.js', {scope: './'});
3333
});
3434
}
3535
</script>

scripts/webpack.client.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module.exports = (options = {}) => merge(
6868
})
6969
].concat(prod ? [
7070
new GenerateSW({
71+
importWorkboxFrom: "local",
7172
include: [cachePattern],
7273
runtimeCaching: [{
7374
urlPattern: cachePattern,

0 commit comments

Comments
 (0)