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
In the downloaded directory you'll find two important files:
63
63
64
-
-[docker-compose.yml](./docker-compose.yml) — installs and orchestrates networking between your Plausible CE server, Postgres database, Clickhouse database (for stats), and an SMTP server.
64
+
-[docker-compose.yml](./docker-compose.yml) — installs and orchestrates networking between your Plausible CE server, Postgres database, and Clickhouse database for stats.
65
65
-[plausible-conf.env](./plausible-conf.env) — configures the Plausible server itself. Full configuration options are documented [below.](#configure)
66
66
67
67
Right now the latter looks like this:
@@ -70,18 +70,21 @@ Right now the latter looks like this:
70
70
```env
71
71
BASE_URL=replace-me
72
72
SECRET_KEY_BASE=replace-me
73
+
TOTP_VAULT_KEY=replace-me
73
74
```
74
75
75
76
Let's do as it asks and populate these required environment variables with our own values.
76
77
77
78
#### Required configuration
78
79
79
-
First we generate the [secret key base](#secret_key_base) using OpenSSL:
80
+
First we generate the [secret key base](#secret_key_base)and [TOTP vault key](#totp_vault_key)using OpenSSL:
@@ -175,22 +181,20 @@ Next we'll go over how to upgrade the instance when a new release comes out, mor
175
181
176
182
## Upgrade
177
183
178
-
Each new [release](https://github.com/plausible/analytics/releases/tag/v2.0.0) contains information on how to upgrade to it from the previous version. This section outlines the
179
-
general steps and explains the versioning.
184
+
Each new [release](https://github.com/plausible/analytics/releases) contains information on how to upgrade to it from the previous version. This section outlines the general steps and explains the versioning.
180
185
181
186
### Version management
182
187
183
188
Plausible CE follows [semantic versioning:](https://semver.org/)`MAJOR.MINOR.PATCH`
184
189
185
-
You can find available Plausible versions on [DockerHub](https://hub.docker.com/r/plausible/analytics). The default `latest` tag refers to the latest stable release tag. You can also pin your version:
190
+
You can find available Plausible versions on [Github packages.](https://github.com/plausible/analytics/pkgs/container/community-edition) The default `latest` tag refers to the latest stable release tag. You can also pin your version:
186
191
187
-
- <kbd>plausible/analytics:v2</kbd> pins the major version to 2 but allows minor and patch version upgrades
188
-
- <kbd>plausible/analytics:v2.0</kbd> pins the minor version to 2.0 but allows only patch upgrades
192
+
- <kbd>ghcr.io/plausible/community-edition:v2</kbd> pins the major version to `2` but allows minor and patch version upgrades
193
+
- <kbd>ghcr.io/plausible/community-edition:v2.1</kbd> pins the minor version to `2.1` but allows only patch upgrades
189
194
190
195
None of the functionality is backported to older versions. If you wish to get the latest bug fixes and security updates you need to upgrade to a newer version.
191
196
192
-
New versions are published on [the releases page](https://github.com/plausible/analytics/releases) and their changes are documented in our [Changelog.](https://github.com/plausible/analytics/blob/master/CHANGELOG.md) Please note that database schema changes require running migrations when you're upgrading. However, we consider the schema
193
-
as an internal API and therefore schema changes aren't considered a breaking change.
197
+
New versions are published on [the releases page](https://github.com/plausible/analytics/releases) and their changes are documented in our [Changelog.](https://github.com/plausible/analytics/blob/master/CHANGELOG.md) Please note that database schema changes require running migrations when you're upgrading. However, we consider the schema as an internal API and therefore schema changes aren't considered a breaking change.
194
198
195
199
We recommend to pin the major version instead of using `latest`. Either way the general flow for upgrading between minor version would look like this:
> Don't use this exact value or someone would be able to sign a cookie with `user_id=1` and log in as the admin!
305
314
315
+
---
316
+
317
+
#### TOTP_VAULT_KEY
318
+
319
+
Configures the secret used for encrypting TOTP secrets at rest using AES256-GCM, doesn't have any defaults and needs to be provided in the ENV vars, can be generated with OpenSSL:
@@ -462,14 +488,41 @@ MaxMind database edition to use (only if [MAXMIND_LICENSE_KEY](#maxmind_license_
462
488
463
489
Plausible CE sends transactional emails e.g. account activation, password reset. In addition, it sends non-transactional emails like weekly or monthly reports.
464
490
465
-
It uses SMTP with a [relay](./docker-compose.yml#L3-L5) by default. Alternatively, you can use other [services](https://hexdocs.pm/bamboo/readme.html#available-adapters) such as Postmark, Mailgun, Mandrill or Send Grid to send emails.
491
+
It uses SMTP with an optional [relay](#smtp_host_addr) by default. Alternatively, you can use other [services](https://hexdocs.pm/bamboo/readme.html#available-adapters) such as Postmark, Mailgun, Mandrill or Send Grid to send emails.
492
+
493
+
[Here's](https://gist.github.com/ruslandoga/c94ce526231fb77930132aaeda3fc3c9) a short guide on using your Gmail account for email delivery.
466
494
467
495
#### MAILER_ADAPTER
468
496
469
497
Default: `Bamboo.SMTPAdapter`
470
498
471
499
Instead of the default, you can replace this with <kbd>Bamboo.PostmarkAdapter</kbd>, <kbd>Bamboo.MailgunAdapter</kbd>, <kbd>Bamboo.MandrillAdapter</kbd> or <kbd>Bamboo.SendGridAdapter</kbd> and add the appropriate variables.
472
500
501
+
<details>
502
+
<summary>Having problems with the default SMTP client?</summary>
503
+
504
+
---
505
+
506
+
Please try the new SMTP client introduced in [v2.1.0-rc.1](https://github.com/plausible/analytics/discussions/4084) by setting MAILER_ADAPTER to `Bamboo.Mua`. All the `SMTP_*` environment variables can stay the same.
0 commit comments