mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Remove inline passwords from documentation connection strings
Co-authored-by: adilhafeez <13196462+adilhafeez@users.noreply.github.com>
This commit is contained in:
parent
5a6b7349b3
commit
a8a4336725
2 changed files with 6 additions and 12 deletions
|
|
@ -138,17 +138,10 @@ Run the SQL schema to create the required table:
|
|||
Configuration
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
Once the database table is created, configure Plano to use PostgreSQL storage:
|
||||
Once the database table is created, configure Plano to use PostgreSQL storage.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
state_storage:
|
||||
type: postgres
|
||||
connection_string: "postgresql://user:password@host:5432/database"
|
||||
|
||||
**Using Environment Variables**
|
||||
|
||||
You should **never** hardcode credentials. Use environment variables instead:
|
||||
.. important::
|
||||
**Never** hardcode credentials. Always use environment variables in your connection string.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
|
|
|||
|
|
@ -64,8 +64,9 @@ After setting up the database table, configure your application to use Supabase
|
|||
|
||||
**Example:**
|
||||
```bash
|
||||
# If your password is "MyPass#123", encode it as "MyPass%23123"
|
||||
export DATABASE_URL="postgresql://postgres.myproject:MyPass%23123@aws-0-us-west-2.pooler.supabase.com:5432/postgres"
|
||||
# If your password is "MyPass#123", URL-encode special characters (# becomes %23)
|
||||
export DB_PASSWORD="MyPass%23123"
|
||||
export DATABASE_URL="postgresql://postgres.myproject:${DB_PASSWORD}@aws-0-us-west-2.pooler.supabase.com:5432/postgres"
|
||||
```
|
||||
|
||||
### Testing the Connection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue