Skip to content

Commit bc6e839

Browse files
committed
Merge branch 'main' of github.com:silverbulletmd/silverbullet
2 parents 5a022ae + 6922bde commit bc6e839

File tree

11 files changed

+66
-66
lines changed

11 files changed

+66
-66
lines changed

website/Attributes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Attribute syntax can contribute additional [[Metadata]] to various [[Objects]] including:
1+
Attribute syntax can contribute additional [[Metadata]] to various [[Objects]], including:
22

33
* Pages
44
* Items
@@ -13,7 +13,7 @@ The syntax is as follows:
1313

1414
For Obsidian/LogSeq compatibility, you can also double the colon like this: `[attributeName:: value]`
1515

16-
Attribute names need to be alpha numeric. Values are interpreted as [[YAML]] values. So here are some examples of valid attribute definitions:
16+
Attribute names need to be alpha-numeric. Values are interpreted as [[YAML]] values. So here are some examples of valid attribute definitions:
1717

1818
* string: [attribute1: sup]
1919
* number: [attribute2: 10]
@@ -28,7 +28,7 @@ Depending on where these attributes appear, they attach to different things. For
2828

2929
[pageAttribute: hello]
3030

31-
However, usually [[Frontmatter]] is be used for this purpose instead.
31+
However, usually, [[Frontmatter]] is used for this purpose instead.
3232

3333
Example query:
3434

website/Authelia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
How to setup SilverBullet with Authelia
22

3-
In order for SilverBullet to work as intended, some files will need to be excluded from your authentication method of choice. These files need to always be accessible, for example for offline or [[PWA]] support.
3+
For SilverBullet to work as intended, some files will need to be excluded from your authentication method of choice. These files always need to be accessible, for example for offline or [[PWA]] support.
44

55
The files are the following:
66
- The web manifest

website/Authentication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ silverbullet --user pete:1234 .
1212
Will let `pete` authenticate with password `1234`.
1313

1414
## Multiple users
15-
Although multi-user support is still rudimentary, it is possible to have multiple users authenticate. These users can be configured using an JSON authentication file that SB can generate for you. It is usually named `.auth.json`.
15+
Although multi-user support is still rudimentary, it is possible to have multiple users authenticate. These users can be configured using a JSON authentication file that SB can generate for you. It is usually named `.auth.json`.
1616

1717
You can enable authentication as follows:
1818

1919
```shell
2020
silverbullet --auth /path/to/.auth.json
2121
```
2222

23-
To create and manage an `.auth.json` file you can use the following commands:
23+
To create and manage an `.auth.json` file, you can use the following commands:
2424

2525
* `silverbullet user:add --auth /path/to/.auth.json [username]` to add a user
2626
* `silverbullet user:delete --auth /path/to/.auth.json [username]` to delete a user
@@ -31,7 +31,7 @@ If the `.auth.json` file does not yet exist, it will be created.
3131
When SB is run with a `--auth` flag, this fill will automatically be reloaded upon change.
3232

3333
### Group management
34-
While this functionality is not yet used, users can also be added to groups, which can be arbitrarily named. Likely the `admin` group will have special meaning down the line.
34+
While this functionality is not yet used, users can also be added to groups which can be arbitrarily named. The `admin` group will likely have a special meaning down the line.
3535

3636
When adding a user, you can add one more `-G` or `--group` flags:
3737

website/Client Modes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SilverBullet currently supports two modes for its client (the part of SilverBull
55

66
You can toggle between these two modes by toggling the 🔄 button in the top bar.
77

8-
You can switch modes any time, and use different modes on different devices.
8+
You can switch modes any time and use different modes on different devices.
99

1010
**Note:** It is technically possible to _switch off online mode_ (and allow synced mode only) by running the SilverBullet server with the `--sync-only` flag (or setting the `SB_SYNC_ONLY` environment variable to something). With this flag on, the sync button will not appear in the UI.
1111

@@ -14,11 +14,11 @@ In online mode, all content in your space is kept on the server, and a lot of th
1414

1515
Advantages:
1616
* **Keeps content on the server**: this mode does not synchronize all your content to your client (browser), making this a better fit for large spaces or for cases where you only need to quickly login to SilverBullet to check something, e.g. on a device you don’t usually use. This use case is the reason why this is the default mode.
17-
* **Lighter-weight** in terms of memory and CPU use of the client.
17+
* **Lighter weight** in terms of memory and CPU use of the client.
1818

1919
Disadvantages:
20-
* **Requires a working network connection** to the server. You can not load pages, nor successfully persist changes without it.
21-
* **Higher latency**, since more interactions require calls to the server, this may be notable e.g., when completing page names.
20+
* **Requires a working network connection** to the server. You can not load pages nor successfully persist changes without it.
21+
* **Higher latency** since more interactions require calls to the server, this may be notable e.g., when completing page names.
2222

2323
## Synced mode
2424
In this mode, all content is synchronized to the client, and all processing happens there. The server effectively acts as a “dumb data store.” All SilverBullet functionality is available even when there is no network connection available.

website/Frontmatter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Frontmatter is a common format to attach additional metadata (data about data) to markdown documents.
22

3-
In SilverBullet there are multiple ways to attach [[Metadata]] to a page, frontmatter is one of them.
3+
In SilverBullet, there are multiple ways to attach [[Metadata]] to a page; frontmatter is one of them.
44

55
You create it by starting your markdown document with `---` followed by [[YAML]] encoded attributes and then ending with `---` again. Followed by the regular body of your document.
66

@@ -18,6 +18,6 @@ Here is an example:
1818
SilverBullet allows arbitrary metadata to be added to pages this way, with two exceptions:
1919

2020
* `name` is an attribute used for page names, so don’t attempt to override it in frontmatter
21-
* `tags` can be specified (as in the example) and are in effect another way of adding tags to your page, you can achieve the same result by simply adding hashtags in the body of your document, e.g. `#tag1 #tag2`.
21+
* `tags` can be specified (as in the example) and are, in effect, another way of adding tags to your page. You can achieve the same result by simply adding hashtags in the body of your document, e.g. `#tag1 #tag2`.
2222

2323
SilverBullet also has the _convention_ of using attributes starting with a `$` for internal use. For instance, the sharing capability uses the `$share` attribute, and `$disableDirectives: true` has the special meaning of disabling [[🔌 Directive]] processing on a page.

website/Guide/Deployment/Cloudflare and Portainer.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
In this guide we will show you how to deploy silverbullet and cloudflare in containers, making them "talk/communicate" in the same private network just for them.
22

3-
This guide assumes that you have already deployed Portainer, if not, see [this official guide](https://docs.portainer.io/start/install-ce/server/docker/linux) from Portainer to deploy it on Linux.
3+
This guide assumes that you have already deployed Portainer. If not, see [this official guide](https://docs.portainer.io/start/install-ce/server/docker/linux) from Portainer to deploy it on Linux.
44

55
### Brief
66

77
This guide will be divided into three parts, in the first we'll set up Silverbullet with Cloudflare. In the second, we will set up Cloudflare from the beginning to access Silverbullet from outside our LAN using [Tunnels](https://www.cloudflare.com/products/tunnel/). And in the third step, we protect our Silverbullet instance with [Access Zero Trust](https://www.cloudflare.com/products/zero-trust/access/) for authentication.
88

9-
# 1 - Deploy Silverbullet and Clouflare in Portainer
9+
# 1 - Deploy Silverbullet and Cloudflare in Portainer
1010

1111
## Prepare the Template
12-
We will prepare a template in Portainer where we will add the configuration of a ==docker-compose.yaml== that will run our containers and we will be able to move the stack to another server/host if necessary using the same configuration.
12+
We will prepare a template in Portainer where we will add the configuration of a ==docker-compose.yaml== that will run our containers, and we will be able to move the stack to another server/host if necessary using the same configuration.
1313

14-
First go to **Home** > (Your environment name, default is **local**) > **App Templates** > **Custom Templates** and click on the blue button in the right corner > "**Add Custom Template**".
14+
First, go to **Home** > (Your environment name, default is **local**) > **App Templates** > **Custom Templates** and click on the blue button in the right corner > "**Add Custom Template**".
1515
![](Guide/Deployment/Cloudflare%20and%20Portainer/create-custom-template.png)
1616

1717
### Name
@@ -20,7 +20,7 @@ Choose a name for the silverbullet stack, we chose "**silverbullet-docker**", ve
2020

2121
### Description
2222

23-
Fill the description with your own words, this is up to you because is optional.
23+
Fill the description with your own words; this is up to you because it is optional.
2424

2525
### Icon Url
2626

@@ -36,7 +36,7 @@ Standalone
3636

3737
### Build Method
3838

39-
As for the Build method choose “**Web Editor**” and copy paste this ==docker-compose.yaml== configuraiton:
39+
As for the Build method choose “**Web Editor**” and copy-paste this ==docker-compose.yaml== configuration:
4040

4141
```yaml
4242
version: '3.9'
@@ -102,7 +102,7 @@ You can leave all the other options by default or change them to suit your netwo
102102
Click **Create Network** at the bottom of the page.
103103
![](Guide/Deployment/Cloudflare%20and%20Portainer/create-network-4.png)
104104
105-
## Depolying the Stack
105+
## Deploying the Stack
106106
107107
Go to **Home** > **Local** > **App Templates** > **Custom Templates**.
108108
@@ -112,29 +112,29 @@ Click on **Deploy the stack**.
112112
![](Guide/Deployment/Cloudflare%20and%20Portainer/deploy-stack-2.png)
113113
Give it a few seconds and you will get a notification that both containers are running. 😇
114114
115-
Only silverbullet cointaer should be working properly by this point, as we haven't finished with cloudflare yet.
115+
Only the silverbullet container should be working properly by this point, as we haven't finished with Cloudflare yet.
116116
![](Guide/Deployment/Cloudflare%20and%20Portainer/view-containers-1.png)
117117
118118
## Verification
119119
120-
In a Web Browser in your Local Network (if your server is in your LAN) write the ip address of your server and add the port 3000 at the end, like this:
120+
In a web browser in your local network (if your server is in your LAN) write the IP address of your server and add the port 3000 at the end, like this:
121121
``http://your-ip-address:3000 ``
122122
123-
Right now the conecttion to silverbullet is **HTTP** and PWA([Progressive Web Apps](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)) an offline mode will not work yet, don’t worry we will get into that later, but for now it should be working correctly, try to type something and sync it to your server.
123+
Right now the connection to silverbullet is **HTTP** and PWA([Progressive Web Apps](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)) and offline mode will not work yet. Don’t worry we will get into that later, but for now, it should be working correctly. Try to type something and sync it to your server.
124124
125125
---
126126
127-
# 2 - Setup Cloudflare with Tunnels.
127+
# 2 - Set up Cloudflare with Tunnels.
128128
129-
Now we are going to use Cloudflare to be able to connect to SilverBullet from outside our network and have a valid SSL certificate without opening any ports or needing a static ipv4 address from our ISP or changing our router configuration.
129+
Now we are going to use Cloudflare to be able to connect to SilverBullet from outside our network and have a valid SSL certificate without opening any ports or needing a static IPv4 address from our ISP or changing our router configuration.
130130
131131
You will need three things:
132132
133133
* An account with Cloudflare ☁️.
134134
* A debit/credit card 💳.
135-
* A domain name (you can buy it on [Njalla](https://njal.la/) 😉, your real name will not be shown if someone uses whois tools).
135+
* A domain name (you can buy it on [Njalla](https://njal.la/) 😉. Your real name will not be shown if someone uses whois tools).
136136
137-
We assume you've already [signed up to Cloudflare](https://www.cloudflare.com/), if not you can go and do it now, it's free but you'll need to add a real debit/credit card to have access to the tunnels and zero access. If you don't want to do that, you can use **alternatives** like [Caddy](https://caddyserver.com/docs/quick-starts/reverse-proxy) or [Nginx](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) for reverse proxy and [Authelia](https://www.authelia.com/) or you can use the [basic authentication built-in](https://silverbullet.md/Authentication) for authentication.
137+
We assume you've already [signed up to Cloudflare](https://www.cloudflare.com/), if not you can go and do it now. It's free but you'll need to add a real debit/credit card to have access to the tunnels and zero access. If you don't want to do that, you can use **alternatives** like [Caddy](https://caddyserver.com/docs/quick-starts/reverse-proxy) or [Nginx](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) for reverse proxy and [Authelia](https://www.authelia.com/) or you can use the [basic authentication built-in](https://silverbullet.md/Authentication) for authentication.
138138
139139
## Add your Site/Domain Name to Cloudflare
140140
@@ -151,15 +151,15 @@ Click on **Zero Trust** once you have added your site/domain name.
151151
![](Guide/Deployment/Cloudflare%20and%20Portainer/setup-tunnel-1.png)
152152
Click on **Create Tunnel**.
153153
![](Guide/Deployment/Cloudflare%20and%20Portainer/setup-tunnels-2.png)
154-
Choose a name for your tunnel, I chose "myhome", very imaginative again 😛. And click on **Save Tunnel**.
154+
Choose a name for your tunnel, I chose "myhome", very imaginative again 😛. And then click on **Save Tunnel**.
155155
![](Guide/Deployment/Cloudflare%20and%20Portainer/setup-tunnels-3.png)
156156
157-
Since we have already set up a container of cloudflare, just copy the token you are given. And be careful, if someone gets your token will be able to make a tunnel connection to your server.
157+
Since we have already set up a container of Cloudflare, just copy the token you are given. And be careful, if someone gets your token they will be able to make a tunnel connection to your server.
158158
![](Guide/Deployment/Cloudflare%20and%20Portainer/setup-tunnels-4_2.png)
159159
160160
Now that you have the token value of your tunnel, it's time to configure the cloudflare container in Portainer. Let's go there.
161161
162-
Go to **App Tempaltes** > **Custom Templates** > **Edit**.
162+
Go to **App Templates** > **Custom Templates** > **Edit**.
163163
![](Guide/Deployment/Cloudflare%20and%20Portainer/deploy-stack-3.png)
164164
Replace “your-token-value-here!” with your token value.
165165
![](Guide/Deployment/Cloudflare%20and%20Portainer/setup-tunnels-6.png)
@@ -184,7 +184,7 @@ Fill in the **subdomain** field with the name you want to use to access silverbu
184184
![](Guide/Deployment/Cloudflare%20and%20Portainer/setup-tunnels-11.png)
185185
Check now with **silberbullet.your-domain-name.com**. You should be able to access it.
186186
187-
# 3 - Setup Cloudflare Zero Access Trust (Auth).
187+
# 3 - Set up Cloudflare Zero Access Trust (Auth).
188188
189189
We assume you've already [signed up to Cloudflare](https://www.cloudflare.com/), if not you can go and do it now, it's free but you'll need to add a real debit/credit card to have access to the tunnels and zero access. If you don't want to do that, you can use **alternatives** like [Caddy](https://caddyserver.com/docs/quick-starts/reverse-proxy) or [Nginx](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) for reverse proxy and [Authelia](https://www.authelia.com/) or you can use the [BasicAuth build-in](https://silverbullet.md/Authentication) for authentication.
190190
@@ -199,21 +199,21 @@ Leave the rest of the page as default and click **Next** at the bottom of the pa
199199
200200
Now it's time to select the name of the policy, the action and the duration of the session.
201201
202-
Select a descriptive **Name** for future troubleshooting, select **Allow** for the **Action** and leave the session duration by default.
202+
Select a descriptive **Name** for future troubleshooting, select **Allow** for the **Action** and leave the session duration at its default.
203203
204-
In the **Configure rules** section, select **Emails** if you want to use emails (or you can use range of IPs, specific countries...) for verification, and enter the emails you want to allow access to Silverbullet.
204+
In the **Configure rules** section, select **Emails** if you want to use emails (or you can use a range of IPs, specific countries...) for verification, and enter the emails you want to allow access to Silverbullet.
205205
![](Guide/Deployment/Cloudflare%20and%20Portainer/add-application-clodflare-5.png)
206206
Leave the rest of the page as default and click **Next** at the bottom of the page.
207207
208208
On the next page, leave everything as default and click on **Add Application** at the bottom of the page.
209209
210-
Go to **silberbullet.your-domain-name.com** and you should see a page like this:
210+
Go to **silverbullet.your-domain-name.com** and you should see a page like this:
211211
![](Guide/Deployment/Cloudflare%20and%20Portainer/add-application-clodflare-6.png)
212212
Going back to the Zero Trust overview, we are now going to create some special rules to allow some specific files from silverbullet without authentication. The same thing happens with other auth applications such as [Authelia](https://silverbullet.md/Authelia).
213213
214214
Create a new self-hosted application in Cloudflare, we suggest the name **silverbullet bypass**.
215215
216-
And add the followings **pahts**:
216+
And add the following **paths**:
217217
218218
```
219219
.client/manifest.json
@@ -223,16 +223,16 @@ service_worker.js
223223

224224
Leave the rest as default and click **Next** at the bottom of the page.
225225
![](Guide/Deployment/Cloudflare%20and%20Portainer/add-application-clodflare-7.png)
226-
For the policy name we suggest **silverbullet bypass paths**, as for the **Action** you need to select **Bypass** and in the Configure Rules **Select** **Everyone** or you can exclude a range of IP's or countries if required.
226+
For the policy name we suggest **silverbullet bypass paths**, as for the **Action** you need to select **Bypass**, and in the Configure Rules **Select** **Everyone** or you can exclude a range of IP's or countries if required.
227227

228228
Leave the rest as default and click **Next** at the bottom of the page.
229229
![](Guide/Deployment/Cloudflare%20and%20Portainer/add-application-clodflare-8.png)
230-
These rules only take affect on the specific paths, you can read more about [Policy inheritance on Cloudflare.](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/)
230+
These rules only take effect on the specific paths, you can read more about [Policy inheritance on Cloudflare.](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/)
231231

232232
On the next page, leave everything as default and click on **Add Application** at the bottom of the page.
233233

234234
Go and check your **silberbullet.your-domain-name.com** everything should be working correctly.
235235

236-
Right now the conecttion to silverbullet is **HTTPS** and PWA ([Progressive Web Apps](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)) an offline mode will work now.
236+
Now the connection to silverbullet is **HTTPS** and PWA ([Progressive Web Apps](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)) and offline mode will work.
237237

238238
I hope this guide has been helpful.

0 commit comments

Comments
 (0)