v2.0.0-rc.1 #2981
Replies: 4 comments 2 replies
-
Previous discussion: #2896 Changes since |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
If there no problems reported with that release, it'll become |
Beta Was this translation helpful? Give feedback.
-
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-alpine
please make sure to upgrade ClickHouse to at least this version.Here's the excerpt from
v1.5 release discussion
regarding 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.yml
update the image used forplausible
tov2.0.0-rc.1
and 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.0
uses the newevents_v2
andsessions_v2
tables 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
plausible
container and start the migration flowYou can attempt this migration multiple times unless you drop
v1
tables.Drop v1 tables (optional)
Once you verify the migration went well, the old tables can be dropped. It's easiest to use
clickhouse-client
for 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.env
setMAXMIND_LICENSE_KEY
environment variable and get an automatically updated GeoLite2 City geolocation database. The database edition is configurable withMAXMIND_EDITION
environment variable and defaults toGeoLite2-City
.Note that for the changes in
plausible-config.env
to propagate to theplausible
, the container needs to be recreated:Also note that using
GeoLite2-City
edition 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=true
in Stats API aggregate endpointtagged-events
classnamesBamboo.MailgunAdapter
,Bamboo.MandrillAdapter
,Bamboo.SendGridAdapter
Support alternative mailing services (Mailgun, Mandrill, Sendgrid) #2649PUT /api/v1/sites
)LOG_FAILED_LOGIN_ATTEMPTS
environment variable to enable failed login attempts logs add LOG_FAILED_LOGIN_ATTEMPTS #2936MAILER_NAME
environment variable support add MAILER_NAME #2937MAILGUN_BASE_URI
support forBamboo.MailgunAdapter
add MAILGUN_BASE_URI #2935Fixed
Changed
bounce_rate
Removed
IP_BLOCKLIST
environment variableThis discussion was created from the release v2.0.0-rc.1.
Beta Was this translation helpful? Give feedback.
All reactions