Commit Graph

37 Commits (d3ecbd4e17d9b093bb7ea7d3e4573c2138cecd0d)

Author SHA1 Message Date
Uku Taht 369f63bc58 Adds an option to rename the script file 5 years ago
Uku Taht c68d90c8b0 Make default site limit 50 5 years ago
Uku Taht 6eb982f7fd Fix issue with config loading 5 years ago
Uku Taht 0ef0fd2048 Fix config option in test 6 years ago
Uku Taht 18ddf9dd9d Admin access 6 years ago
Uku Taht e71de6dc1f
Invitations (#1122)
* Invite existing user to a site

* Add invitation flow for non-existing users

* Accept and reject invitations

* Use invitation flow for existing users

* Locking mechanism for sites

* Authorization for site settings

* Show usage based on site ownership

* Add ability to remove members from a site

* Do not show settings link to viewer roles

* Ability to remove invitations

* Remove `Plausible.Sites.count_for/1`

* Fix tests

* Do not show the trial banner after the trial

* Correct trial emails

* Transfer ownership

* Send invitation email to existing user

* Add invitation email flows

* Add plug for role-based authorization

* Rename AuthorizeStatsPlug -> AuthorizeSiteAccess

* Add email flow for ownership transfer

* Fix URLs in emails

* Fix small copy issues

* Make 'People' its own section in site settings

* Notify user via email if their access has been removed

* Check site lock status when invitation is accepted

* Check lock status when user subscribes

* Make sure only admins and owners can create shared links

* Changelog

* Add LockSites to daily cron

* Clean invitations after 48 hours

* Add notices about expiry

* Add invitation expired page

* Add doc link
6 years ago
Uku Taht 7e229140ed Move config files to config directory 6 years ago
Uku Taht 3fe8bd6681
Pr/1117 formatted (#1129)
* runtime.exs: get var from file

* Format pr/1117

Co-authored-by: happysalada <raphael@megzari.com>
6 years ago
Uku Taht 0054c9fc96 Add api keys to CRM 6 years ago
Uku Taht d9cc21fc06 Add site limit exempt config 6 years ago
Raphael Megzari a0a0c3a8db
add tzdata storage dir (#1104) 6 years ago
Maximilian Bosch 4ff25f68c8
Postgres socket authentication (#1052)
* Allow to connect to postgres via socket auth

* Add changelog entry for new env-vars

Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
Andrey Meshkov 90cfed035f
Added parameters for Clickhouse flush interval and max buffer size (#1073)
Currently, both are hard-coded to relatively small values.
This may cause an unnecessary high load on the Clickhouse instance.
It makes sense to make those configurable.
6 years ago
Uku Taht 6228995d4f Rate limit login attempts to 5 per minute 6 years ago
Uku Taht 22172074d8 Remove json logger 6 years ago
Uku Taht 23196b97ec Increase clickhouse pool checkout target 6 years ago
Uku Taht 503916980e Remove no_limit_ids 6 years ago
Uku Taht c3b24342c6 Allow exemption list to be provided in config 6 years ago
Uku Taht 119b9514b2 Add limit of 20 sites 6 years ago
Uku Taht 8d1039b8ce
Upgrades Oban to v2.6.1 (#967)
* Upgrades Oban to v2.6.1

* Use correct clickhouse_ecto
6 years ago
Uku Taht 7982c236c1 Better Sentry tracking 6 years ago
Uku Taht fbe6ab9b61 Remove AppSignal 6 years ago
Uku Taht 6ca7425dc9
Send renewal notification for annual subscriptions (#949)
* Add background job to send renewal notification

* Use copy from Marko

* Add expiration email in case the user has cancelled

* Add queue config

* Use correct tag for expiration email
6 years ago
Uku Taht 4fd5cdff58 Add download step to docker build 6 years ago
Uku Taht 8ba21d2470 Use correct pruning syntax 6 years ago
Uku Taht be26662f36 Crash early if secret_key_base is not configured correctly 6 years ago
Uku Taht 0d71ec3acd Keep longer history of oban jobs 6 years ago
Uku Taht 83a759c60a
Use db-ip lite database for countries (#906)
* Use DBIP database for countries

* Add fake data for geolocation tests
6 years ago
Uku Taht 4cbebe8ac9 Remove old Sentry code 6 years ago
Uku Taht 3b8fad4942 Upgrade sentry to 8.0 6 years ago
Uku Taht 2bab36a438 Add usage checking to cron 6 years ago
Uku Taht 2d8a03e861 Add JSON logger 6 years ago
Uku Taht 99a3582883 Add option to completely disable cron 6 years ago
Uku Taht e873d790e5
Self hosted improvements (#603)
* Introduce SELFHOST config. Enable cron by default for self hosters

* Fix cron, disable custom domain for selfhost

* Add github links

* Add notice about google search console on self hosted

* Enfore BASE_URL

* Set all selfhost users' trial expiry to 100 years from now

* Fix admin user creation
6 years ago
Uku Taht 563c8d99f4 Fix new configuration 6 years ago
Uku Taht 7d8951435e Add test configuration 6 years ago
Uku Taht 6c8ae24adc
New config (#595)
* Use Config instead of Mix.Config

* Use new config/runtime.exs to reduce duplication
6 years ago