mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
65cc8980e0
* Add `nimble_totp`, `cloak` and `cloak_ecto` to project dependencies * Setup Cloak-based secrets vault and create a dedicated Ecto type * Add `totp_enabled|secret|last_used_at` fields to `User` schema * Implement schema and stateless logic for TOTP recovery codes * Implement core logic of TOTP auth * Fix typos and improve style of doc comments Co-authored-by: hq1 <hq@mtod.org> * Fix moduledoc alignment * Use more compact conditional expression Co-authored-by: hq1 <hq@mtod.org> * Disambiguate `I` as `7` when generating recovery codes (h/t @hq1) * Fix a typo in runtime config error message --------- Co-authored-by: hq1 <hq@mtod.org>
18 lines
662 B
Plaintext
18 lines
662 B
Plaintext
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/plausible_test?pool_size=40
|
|
CLICKHOUSE_DATABASE_URL=http://127.0.0.1:8123/plausible_test
|
|
SECRET_KEY_BASE=/njrhntbycvastyvtk1zycwfm981vpo/0xrvwjjvemdakc/vsvbrevlwsc6u8rcg
|
|
TOTP_VAULT_KEY=1Jah1HEOnCEnmBE+4/OgbJRraJIppPmYCNbZoFJboZs=
|
|
BASE_URL=http://localhost:8000
|
|
CRON_ENABLED=false
|
|
LOG_LEVEL=warning
|
|
ENVIRONMENT=test
|
|
MAILER_ADAPTER=Bamboo.TestAdapter
|
|
ENABLE_EMAIL_VERIFICATION=true
|
|
SELFHOST=false
|
|
HCAPTCHA_SITEKEY=test
|
|
HCAPTCHA_SECRET=scottiger
|
|
IP_GEOLOCATION_DB=test/priv/GeoLite2-City-Test.mmdb
|
|
SITE_DEFAULT_INGEST_THRESHOLD=1000000
|
|
GOOGLE_CLIENT_ID=fake_client_id
|
|
GOOGLE_CLIENT_SECRET=fake_client_secret
|