Commit Graph

102 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 f4813f02fd Add link to the troubleshooting guide 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 02ad4c8f5e
update js deps 2 (#1112)
* update js deps

* Update development command

Co-authored-by: happysalada <raphael@megzari.com>
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 2cf0c1a456 Use `forwarded` header when X-Forwarded-For is missing 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
Oliver Kriska 4d4f8ba5c3
Elixir & Docker upgrade (#566)
* Elixir upgrade

 - upgraded Elixir to 1.11.2
 - upgraded Erlang to 23.2.1
 - upgraded Phoenix to 1.5.7
 - Upgraded:
  bamboo_postmark 0.6.0 => 0.7.0 (minor)
  bcrypt_elixir 2.2.0 => 2.3.0
  csv 2.3.1 => 2.4.1
  ecto 3.4.6 => 3.5.5
  ecto_sql 3.4.4 => 3.5.3
  elixir_make 0.6.0 => 0.6.2
  ex_machina 2.4.0 => 2.5.0
  excoveralls 0.12.3 => 0.13.4 (minor)
  file_system 0.2.8 => 0.2.10
  gettext 0.18.0 => 0.18.2
  httpoison 1.6.2 => 1.7.0
  nanoid 2.0.2 => 2.0.5
  phoenix_ecto 4.1.0 => 4.2.1
  phoenix_live_reload 1.2.2 => 1.3.0
  postgrex 0.15.5 => 0.15.7
  sentry 7.2.4 => 7.2.5
  timex 3.6.2 => 3.6.3
  tzdata 1.0.3 => 1.0.5
  yamerl 0.8.0 => 0.8.1

* Elixir & Docker upgrade

upgraded to 1.11.3

* Docker

 - fixed missing python3 package for newer Alpine linux
6 years ago
Uku Taht 34d5dfbbc2 Add kaffy config to releases.exs 6 years ago
Uku Taht c847839471 Add title to admin 6 years ago
Uku Taht c4d7b5ae05 Fix user admin 6 years ago
Uku Taht df99ef4303 Fix build 6 years ago
Uku Taht 650378f367
Add CRM for admin emails (#557) 6 years ago
Uku Taht 4ba5fb5ead
Add cache for user-agent strings (#547) 6 years ago
Uku Taht b7827fee6a Increase postmark timeout 6 years ago
Uku Taht aa7ae87811
Onboarding UX improvements (#441)
* WIP

* Actually activate the user

* Send email verification codes

* Send activation code with email

* Only show onboarding steps during first site creation

* Add worker to config

* Consistent form styles

* Send welcome email when user activates account

* Add changelog entry

* Use https in new site form

* Correct spelling in email
6 years ago
Uku Taht 54f70717c4 Add basic spike notifications
Co-authored-by: Jerod Santo <jerod@changelog.com>
6 years ago