You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -78,19 +72,23 @@ HedgeDoc requires an encrypted TLS connection to add and manage users. For the p
78
72
79
73
1. Install `mkcert` with these [instructions](https://github.com/FiloSottile/mkcert#installation)
80
74
1. Create a trusted **rootCA**:
81
-
```bash
82
-
mkcert -install
83
-
```
75
+
76
+
```bash
77
+
mkcert -install
78
+
```
79
+
84
80
1. Create a wildcard certificate for `*.localhost.pomerium.io`:
85
-
```bash
86
-
mkcert '*.localhost.pomerium.io'
87
-
```
81
+
82
+
```bash
83
+
mkcert '*.localhost.pomerium.io'
84
+
```
85
+
88
86
This creates two files in your working directory:
89
87
90
88
- `_wildcard.localhost.pomerium.io.pem`
91
89
- `_wildcard.localhost.pomerium.io-key.pem`
92
90
93
-
In the next section, you'll bind mount these certificates in a Docker Compose file.
91
+
In the next section, you'll bind mount these certificates in a Docker Compose file.
94
92
95
93
### Set up HedgeDoc
96
94
@@ -133,7 +131,7 @@ services:
133
131
volumes:
134
132
- uploads:/hedgedoc/public/uploads
135
133
ports:
136
-
- "3000:3000"
134
+
- '3000:3000'
137
135
restart: always
138
136
depends_on:
139
137
- database
@@ -148,7 +146,7 @@ volumes:
148
146
149
147
HedgeDoc requires a session secret to sign session cookies. If you don't add a session secret, HedgeDoc generates a random one for you upon startup, which will end any active sessions and sign out your users.
150
148
151
-
Adding a session secret will allow you to resume a session even if you stop your Docker services.
149
+
Adding a session secret will allow you to resume a session even if you stop your Docker services.
152
150
153
151
To generate a secret, run:
154
152
@@ -167,7 +165,7 @@ Replace the value of `CMD_SESSION_SECRET` with the output:
167
165
168
166
To configure HedgeDoc to use HTTPS:
169
167
170
-
- Set `CMD_PROTOCOL_USESSL` to `true`
168
+
- Set `CMD_PROTOCOL_USESSL` to `true`
171
169
- Set `CMD_ADDPORT` to `false`
172
170
173
171
## Run HedgeDoc and Pomerium
@@ -178,7 +176,7 @@ Run Docker Compose:
178
176
docker compose up
179
177
```
180
178
181
-
Navigate to `https://hedgedoc.localhost.pomerium.io/` to access HedgeDoc.
179
+
Navigate to `https://hedgedoc.localhost.pomerium.io/` to access HedgeDoc.
182
180
183
181
Pomerium will prompt you to authenticate:
184
182
@@ -194,10 +192,10 @@ After successful authentication, Pomerium will redirect you to your HedgeDoc URL
194
192
1. Enter an **E-Mail** and **Password**
195
193
1. Select **Register**
196
194
197
-
When you sign in, HedgeDoc will take you to your user dashboard:
195
+
When you sign in, HedgeDoc will take you to your user dashboard:
198
196
199
197

200
198
201
199
If you check the connection, you'll notice it's secure. Now, you can write your first note and share it with users within your network:
202
200
203
-

201
+

0 commit comments