You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Replace `[YOUR-PASSWORD]` with the password for the `postgres` user in your Supabase database.
30
-
* Supabase also [refers to this password](https://supabase.com/docs/guides/database/managing-passwords) as the _database password_ or _project password_.
31
-
2. PowerSync has the Supabase CA certificate pre-configured — `verify-full` SSL mode can be used directly, without any custom certificates.
32
-
3. Under `client_auth` enable Supabase Auth:
33
-
34
-
```yaml
35
-
client_auth:
36
-
supabase: true
37
-
```
11
+
1. In your Supabase dashboard, navigate to **"Project Settings"**\-> **"Database" -> "Connection string**" and select the "URI" tab.
12
+
2. Uncheck the "**Display connection pooler**" checkbox. PowerSync needs to connect to the database directly and cannot use the pooler.
13
+
<Frame>
14
+
<imgsrc="/images/self-hosting-3.avif"/>
15
+
</Frame>
16
+
3. Copy the connection string. The hostname should be `db.<PROJECT-ID>.supabase.co`, and not, for example, `aws-0-us-west-1.pooler.supabase.com`.
17
+
4. Paste this URI into the `uri` field under `replication`\>`connections` in your configuration file, for example:
5. Replace `[YOUR-PASSWORD]` with the password for the `postgres` user in your Supabase database.
29
+
* Supabase also [refers to this password](https://supabase.com/docs/guides/database/managing-passwords) as the _database password_ or _project password_.
30
+
6. PowerSync has the Supabase CA certificate pre-configured — `verify-full` SSL mode can be used directly, without any custom certificates.
31
+
7. Under `client_auth` enable Supabase Authentication:
32
+
33
+
```yaml
34
+
client_auth:
35
+
supabase: true
36
+
supabase_jwt_secret: [secret]
37
+
```
38
+
For more details, see [Supabase Auth](/installation/authentication-setup/supabase-auth).
38
39
</Accordion>
39
40
<Accordion title="AWS RDS">
40
41
Add your connection details under `replication` \> `connections` in your configuration file.
0 commit comments