📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
CE 2FA docs
Blue Mouse41d1c968ce61
diff --git a/docs/content/docs/accountsettings/two-factor-authentication.mdx b/docs/content/docs/accountsettings/two-factor-authentication.mdxindex b36370e5f..2066f6313 100644--- a/docs/content/docs/accountsettings/two-factor-authentication.mdx+++ b/docs/content/docs/accountsettings/two-factor-authentication.mdx@@ -3,9 +3,9 @@ title: Set up 2-factor authentication (2FA) for your accountslug: /settings/2-factor-authentication----Two-factor authentication (2FA) adds a second layer of defense to your account, so even if someone gets hold of your password they still can’t sign in.+Two-factor authentication (2FA) adds a second layer of defense to your account, so even if someone gets hold of your password they still can't sign in. 2FA is available on both **Swetrix Cloud** and **self-hosted (Community Edition)** instances.-Once 2FA is enabled, when you try to log into your account you’ll need:+Once 2FA is enabled, when you try to log into your account you'll need:1. Your account password, and2. A one-time verification code generated on a trusted device.@@ -16,7 +16,7 @@ We also provide you with a recovery code that you can enter in case you lose acc## How to enable 2FA-To enable 2FA, you need to log in to your account and go to the [account settings page](https://swetrix.com/user-settings).+To enable 2FA, you need to log in to your account and go to the account settings page (on Cloud: [swetrix.com/user-settings](https://swetrix.com/user-settings), or your self-hosted instance's equivalent).On the "Account" tab, you will see the "Two-factor authentication (2FA)" section. Click on the "Enable 2FA" button.@@ -32,7 +32,7 @@ A recovery code will be generated and shown to you. Keep it private and store it## How to disable 2FA-To disable 2FA, on the [account settings page](https://swetrix.com/user-settings), scroll down to the "Two-factor authentication (2FA)" section and click on the "Disable 2FA" button.+To disable 2FA, on the account settings page, scroll down to the "Two-factor authentication (2FA)" section and click on the "Disable 2FA" button.In the input field shown afterwards, enter a one-time code generated by your authenticator app or a recovery code and click on the "Disable" button.diff --git a/docs/content/docs/selfhosting/configuring.mdx b/docs/content/docs/selfhosting/configuring.mdxindex de0ce7213..e9d25d9d2 100644--- a/docs/content/docs/selfhosting/configuring.mdx+++ b/docs/content/docs/selfhosting/configuring.mdx@@ -25,13 +25,14 @@ The `BASE_URL` must be publicly reachable from your users' browsers. Do not set### Basic configuration-| Variable | Default | Description |-| ------------------------ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| `SECRET_KEY_BASE` | _auto-generated by `configure.sh`_ | Secret used for auth keys and login sessions. Must be set. |-| `CLIENT_IP_HEADER` | `null` | Defines what header should be used to get IP address (e.g. cf-connecting-ip, x-real-ip, etc.). If not set, Swetrix will use `x-forwarded-for` header. |-| `DISABLE_REGISTRATION` | `true` | When set to `true` - Swetrix will disable user registration, except for the initial user. |-| `IP_GEOLOCATION_DB_PATH` | `` | Path to the `.mmdb` file for IP geolocation database. By default Swetrix uses IP to City Lite database by DB-IP. |-| `IS_PRIMARY_NODE` | `true` | You should not touch this variable unless you know what you are doing. It's used to spin off multiple API instances in a cluster, where only one of them will be primary. If changed to `false`, things like cron task manager will be disabled for this instance. |+| Variable | Default | Description |+| ------------------------------------ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |+| `SECRET_KEY_BASE` | _auto-generated by `configure.sh`_ | Secret used for auth keys and login sessions. Must be set. |+| `CLIENT_IP_HEADER` | `null` | Defines what header should be used to get IP address (e.g. cf-connecting-ip, x-real-ip, etc.). If not set, Swetrix will use `x-forwarded-for` header. |+| `DISABLE_REGISTRATION` | `true` | When set to `true` - Swetrix will disable user registration, except for the initial user. |+| `IP_GEOLOCATION_DB_PATH` | `` | Path to the `.mmdb` file for IP geolocation database. By default Swetrix uses IP to City Lite database by DB-IP. |+| `IS_PRIMARY_NODE` | `true` | You should not touch this variable unless you know what you are doing. It's used to spin off multiple API instances in a cluster, where only one of them will be primary. If changed to `false`, things like cron task manager will be disabled for this instance. |+| `TWO_FACTOR_AUTHENTICATION_APP_NAME` | `Swetrix CE` | The app name shown in authenticator apps when users set up 2FA. |### Email configuration (SMTP)