Skip to content

Commit de7e8c7

Browse files
authored
docs: fix fly.io direct connection url (#397)
1 parent 45b7af5 commit de7e8c7

File tree

1 file changed

+4
-3
lines changed
  • docs/documentation/guides/self-hosting

1 file changed

+4
-3
lines changed

docs/documentation/guides/self-hosting/flyio.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ Both of these secrets should be set to the base URL of your fly application. For
7474

7575
3. `DIRECT_URL`
7676

77-
This needs to be set to the database connection string that was printed to your terminal after the creation step above:
77+
This needs to match the value of `DATABASE_URL` which was printed to your terminal after the creation step above:
7878

7979
```sh
80-
Connection string: postgres://postgres:<PASSWORD>@<fly db name>.flycast:5432
80+
The following secret was added to <app name>:
81+
DATABASE_URL=postgres://postgres:<PASSWORD>@<fly db name>.flycast:5432/<app name>?sslmode=disable
8182
```
8283

8384
### Optional
@@ -111,7 +112,7 @@ fly secrets set \
111112
SESSION_SECRET=<random string> \
112113
LOGIN_ORIGIN="https://<fly app name>.fly.dev" \
113114
APP_ORIGIN="https://<fly app name>.fly.dev" \
114-
DIRECT_URL="postgres://postgres:<PASSWORD>@<fly db name>.flycast:5432" \
115+
DIRECT_URL="postgres://postgres:<PASSWORD>@<fly db name>.flycast:5432/<app name>?sslmode=disable" \
115116
FROM_EMAIL="Acme Inc. <[email protected]>" \
116117
REPLY_TO_EMAIL="Acme Inc. <[email protected]>" \
117118
RESEND_API_KEY=<your API Key> \

0 commit comments

Comments
 (0)