v2.0.0-rc.1 #2981
Replies: 4 comments 2 replies
|
Previous discussion: #2896 Changes since |
|
I upgraded from 1.5.1 to 2.0.0-rc.1. On 1.5.1 I hadn't setup Maxmind. With the move to 2.0.0-rc.1 I enabled Maxmind via the two environment variables mentioned in the release notes above. Do I have to do any additional setup steps? (Like the GeoIP env vars mentioned in the 1.5.1 release notes or did they become obsolete with the 2.0.0 release?) Meanwhile some City and Region infos showed up. So in general it seems to work. But it seems incomplete. When I visit my website, I would expect to see my city/region in the plausible dashboard, but it's not showing up. But when logging into the container and calling |
|
Hi, have one question can we remove "access-control-allow-origin: *" header. It is very benevolent policy for selfhosted environment. Should be used for CDN. Also trying to figure content-security-policy, any experience? Thanks |
|
If there no problems reported with that release, it'll become |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The highlights of this release are:
Upgrading Plausible Analytics to v2.0
Ensure you are using a new ClickHouse version
The steps below have been tested with
clickhouse/clickhouse-server:22.6-alpineplease make sure to upgrade ClickHouse to at least this version.Here's the excerpt from
v1.5 release discussionregarding the ClickHouse upgradeIn your docker-compose.yml update the image used for plausible_events_db to a newer ClickHouse version:
Upgrading ClickHouse to 22.6
Restart the container
This will boot up the new version of ClickHouse.
Related PR: plausible/community-edition#45
Update image tag
In your
docker-compose.ymlupdate the image used forplausibletov2.0.0-rc.1and restart the container
This will boot up the new version of the app.
If you open the dashboards now, you wouldn't see any past metrics. This is expected as
v2.0uses the newevents_v2andsessions_v2tables to store analytics data. We need to perform data migration to copy the data into the new tables.Run data migration
Connect to the running
plausiblecontainer and start the migration flowYou can attempt this migration multiple times unless you drop
v1tables.Drop v1 tables (optional)
Once you verify the migration went well, the old tables can be dropped. It's easiest to use
clickhouse-clientfor thisSee https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings#max-table-size-to-drop for how to drop tables with more than 50GB of data.
Enable automatic MaxMind GeoLite2 updates (optional)
In your
plausible-config.envsetMAXMIND_LICENSE_KEYenvironment variable and get an automatically updated GeoLite2 City geolocation database. The database edition is configurable withMAXMIND_EDITIONenvironment variable and defaults toGeoLite2-City.Note that for the changes in
plausible-config.envto propagate to theplausible, the container needs to be recreated:Also note that using
GeoLite2-Cityedition requires more RAM than usingGeoLite2-Country.Now you can remove any other volumes and services used to download, store, and update geolocation databases.
Changelog
Following changes have been made since v1.5:
Added
with_imported=truein Stats API aggregate endpointtagged-eventsclassnamesBamboo.MailgunAdapter,Bamboo.MandrillAdapter,Bamboo.SendGridAdapterSupport alternative mailing services (Mailgun, Mandrill, Sendgrid) #2649PUT /api/v1/sites)LOG_FAILED_LOGIN_ATTEMPTSenvironment variable to enable failed login attempts logs add LOG_FAILED_LOGIN_ATTEMPTS #2936MAILER_NAMEenvironment variable support add MAILER_NAME #2937MAILGUN_BASE_URIsupport forBamboo.MailgunAdapteradd MAILGUN_BASE_URI #2935Fixed
Changed
bounce_rateRemoved
IP_BLOCKLISTenvironment variableThis discussion was created from the release v2.0.0-rc.1.
All reactions